summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/gas/testsuite/gas/arm/ldst-pc.s
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.25/gas/testsuite/gas/arm/ldst-pc.s')
-rw-r--r--binutils-2.25/gas/testsuite/gas/arm/ldst-pc.s24
1 files changed, 24 insertions, 0 deletions
diff --git a/binutils-2.25/gas/testsuite/gas/arm/ldst-pc.s b/binutils-2.25/gas/testsuite/gas/arm/ldst-pc.s
new file mode 100644
index 00000000..2d96e3b2
--- /dev/null
+++ b/binutils-2.25/gas/testsuite/gas/arm/ldst-pc.s
@@ -0,0 +1,24 @@
+@ Test file for ARM load/store instructions with pc as the base register
+
+ .text
+ .syntax unified
+ .align 2
+ ldr r1, [pc, #-8]
+ ldr r1, [pc, r2]
+ ldrb r1, [pc, r2]
+ ldrd r0, r1, [pc, r2]
+ ldrh r1, [pc, r2]
+ ldrsb r1, [pc, r2]
+ ldrsh r1, [pc, r2]
+
+ pld [pc, #-8]
+ pld [pc, r1]
+
+ pli [pc, #-8]
+ pli [pc, r1]
+
+ str r1, [pc, #4]
+ str r1, [pc, r2]
+ strb r1, [pc, r2]
+ strd r0, r1, [pc, r2]
+ strh r1, [pc, r2]