1@ Test file for ARM load/store instructions with pc as the base register 2 3 .text 4 .syntax unified 5 .align 2 6 ldr r1, [pc, #-8] 7 ldr r1, [pc, r2] 8 ldrb r1, [pc, r2] 9 ldrd r0, r1, [pc, r2] 10 ldrh r1, [pc, r2] 11 ldrsb r1, [pc, r2] 12 ldrsh r1, [pc, r2] 13 14 pld [pc, #-8] 15 pld [pc, r1] 16 17 pli [pc, #-8] 18 pli [pc, r1] 19 20 str r1, [pc, #4] 21 str r1, [pc, r2] 22 strb r1, [pc, r2] 23 strd r0, r1, [pc, r2] 24 strh r1, [pc, r2] 25