Closed
Description
Shouldn't we be attaching the shift to the second operand? Unless I'm misunderstanding what the assembly does, the only thing that happens to r1 is a word being stored in it.
$ test-as 'ldr r1, [r2, r0, lsl #3]'
/tmp/foo.s.o: file format elf32-littlearm
Disassembly of section .text:
00000000 <.text>:
0: e7921180 ldr r1, [r2, r0, lsl #3]
$ ./a.out e7921180
e7921180: ldr nrop=2
writeback: no
update_flags: no
cond: ARM_CC_AL
operand 00: type=ARM_OP_REG reg=r1 sft=ARM_SFT_LSL #3
operand 01: type=ARM_OP_MEM base=r2 index=r0 scale=1 disp=0
group: ARM_GRP_ARM
~/Desktop
Metadata
Metadata
Assignees
Labels
No labels