mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
JIT/AArch64: Fixed incorrect MEM_LOAD usage
This commit is contained in:
parent
53021b4b9b
commit
f44ff44516
1 changed files with 2 additions and 1 deletions
|
@ -617,7 +617,8 @@ static int logical_immediate_p (uint64_t value, uint32_t reg_size)
|
|||
// The computation result is stored back to memory 'addr'. 'op' can be either imm12 or register.
|
||||
// For constant case, it should be guaranteed that 'op' can be represented by imm12 before using this macro.
|
||||
|.macro MEM_LOAD_OP_STORE, mem_ins, ldr_ins, str_ins, op, addr, tmp_reg1, tmp_reg2
|
||||
| MEM_LOAD ldr_ins, tmp_reg1, addr, tmp_reg2
|
||||
| LOAD_ADDR tmp_reg2, addr
|
||||
| ldr_ins, tmp_reg1, [tmp_reg2]
|
||||
| mem_ins tmp_reg1, tmp_reg1, op
|
||||
| str_ins tmp_reg1, [tmp_reg2]
|
||||
|.endmacro
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue