Skip to content

Commit 31b0f9f

Browse files
shqkingdstogov
authored andcommitted
Support failed JIT test case: assign_027.phpt
This patch is trivial, supporting the comparion with constant values, i.e. "$i < 2" in this test case.
1 parent 7537d21 commit 31b0f9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/jit/zend_jit_arm64.dasc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,10 +580,10 @@ static void* dasm_labels[zend_lb_MAX];
580580

581581
|.macro LONG_CMP, reg, addr, tmp_reg1, tmp_reg2
582582
|| if (Z_MODE(addr) == IS_CONST_ZVAL) {
583-
| brk #0 // TODO: test
584583
|| if(Z_LVAL_P(Z_ZV(addr)) >= 0 && Z_LVAL_P(Z_ZV(addr)) <= MAX_IMM12) {
585584
| cmp Rx(reg), #(Z_LVAL_P(Z_ZV(addr)))
586585
|| } else {
586+
| brk #0 // TODO
587587
| LOAD_64BIT_VAL tmp_reg1, Z_LVAL_P(Z_ZV(addr))
588588
| cmp Rx(reg), tmp_reg1
589589
|| }

0 commit comments

Comments
 (0)