Skip to content

Commit c9fb384

Browse files
committed
JIT ARM64: Use proper register
1 parent d12d987 commit c9fb384

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/jit/zend_jit_arm64.dasc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5491,7 +5491,7 @@ static int zend_jit_simple_assign(dasm_State **Dst,
54915491
|1:
54925492
}
54935493
if (Z_REG(val_addr) == ZREG_REG2) {
5494-
| str x2, T1 // save
5494+
| str REG2, T1 // save
54955495
}
54965496
| // zend_refcounted *ref = Z_COUNTED_P(retval_ptr);
54975497
| GET_ZVAL_PTR REG2, val_addr, TMP1
@@ -5518,7 +5518,7 @@ static int zend_jit_simple_assign(dasm_State **Dst,
55185518
|2:
55195519
}
55205520
if (Z_REG(val_addr) == ZREG_REG2) {
5521-
| ldr x2, T1 // restore
5521+
| ldr REG2, T1 // restore
55225522
}
55235523
if (save_r1) {
55245524
| str FCARG1x, T1 // save

0 commit comments

Comments
 (0)