Closed blackgeorge-boom closed 10 months ago
This is similar to https://github.com/systems-nuts/unifico/issues/104, but this time the immediate is 8-bit long:
AArch64:
%1:gpr32 = MOVi32imm 1
STRBBui %1:gpr32, %0:tcgpr64, target-flags(aarch64-pageoff, aarch64-nc) @lastrow, debug-location !72 :: (store 1 into @lastrow, align 4); main.c:91:12
X86:
MOV8mi $rip, 1, $noreg, @lastrow, $noreg, 1, debug-location !72 :: (store 1 into @lastrow, align 4); main.c:91:12
AArch64 ends up using a CSR for the immediate:
50103c: mov w19, #0x1
...
50104c: strb w19, [x8]