summaryrefslogtreecommitdiffstats
path: root/binutils-2.25/gas/testsuite/gas/epiphany/badpostmod.s
diff options
context:
space:
mode:
Diffstat (limited to 'binutils-2.25/gas/testsuite/gas/epiphany/badpostmod.s')
-rw-r--r--binutils-2.25/gas/testsuite/gas/epiphany/badpostmod.s14
1 files changed, 14 insertions, 0 deletions
diff --git a/binutils-2.25/gas/testsuite/gas/epiphany/badpostmod.s b/binutils-2.25/gas/testsuite/gas/epiphany/badpostmod.s
new file mode 100644
index 00000000..7a55860b
--- /dev/null
+++ b/binutils-2.25/gas/testsuite/gas/epiphany/badpostmod.s
@@ -0,0 +1,14 @@
+ .text
+ .global postmod
+postmod:
+ ldrd r0,[r1],r2 ; tricky because r1 is implied as destination
+
+ strb r12,[r12],r3 ; stores are okay
+ strd r12,[r13],r3
+
+ ldr r0,[r0],r0 ; ERROR
+
+ ldr r0,[r0,+128] ; ok
+ ldrd r12,[r13],-256 ; ERROR
+ ldrb r12,[r12],20 ; ERROR
+ strd r12,[r13],-256 ; ok