OSDN Git Service

Merge branch 'binutils' into tmp
[pf3gnuchains/pf3gnuchains4x.git] / gas / testsuite / gas / epiphany / badpostmod.s
diff --git a/gas/testsuite/gas/epiphany/badpostmod.s b/gas/testsuite/gas/epiphany/badpostmod.s
new file mode 100644 (file)
index 0000000..7a55860
--- /dev/null
@@ -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