Skip to content

Commit 4e0165e

Browse files
committed
JIT/AArch64: Use LSL instruction (DynAsm was fixed by
2963214)
1 parent c995a35 commit 4e0165e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ext/opcache/jit/zend_jit_arm64.dasc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4571,9 +4571,7 @@ static int zend_jit_long_math_helper(dasm_State **Dst,
45714571
| add Rx(result_reg), Rx(Z_REG(op1_addr)), Rx(Z_REG(op1_addr))
45724572
} else {
45734573
| GET_ZVAL_LVAL result_reg, op1_addr, TMP1
4574-
| // TODO: DynAsm can't encode "lsl/ubfm", use "add+lsl" instead
4575-
| //lsl Rx(result_reg), Rx(result_reg), #op2_lval
4576-
| add Rx(result_reg), xzr, Rx(result_reg), lsl #op2_lval
4574+
| lsl Rx(result_reg), Rx(result_reg), #op2_lval
45774575
}
45784576
} else {
45794577
zend_reg op2_reg;

0 commit comments

Comments
 (0)