X-Git-Url: http://git.osdn.net/view?a=blobdiff_plain;f=gas%2Ftestsuite%2Fgas%2Fepiphany%2Fbadpostmod.s;fp=gas%2Ftestsuite%2Fgas%2Fepiphany%2Fbadpostmod.s;h=7a55860b733a62c8601a517a14b30c7ef1baae03;hb=cbad6d5ba66a94967eaf14df64463a4abca700d6;hp=0000000000000000000000000000000000000000;hpb=b110964dfb2d0779466e4e604983d3afa83993a4;p=pf3gnuchains%2Fpf3gnuchains4x.git diff --git a/gas/testsuite/gas/epiphany/badpostmod.s b/gas/testsuite/gas/epiphany/badpostmod.s new file mode 100644 index 0000000000..7a55860b73 --- /dev/null +++ b/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