X-Git-Url: https://oss.titaniummirror.com/gitweb?p=msp430-binutils.git;a=blobdiff_plain;f=gas%2Ftestsuite%2Fgas%2Fsh%2Ferr-mova.s;fp=gas%2Ftestsuite%2Fgas%2Fsh%2Ferr-mova.s;h=eb0920364a6685a4eed8d1f7db1e228bbc95be98;hp=0000000000000000000000000000000000000000;hb=d5da4f291af551c0b8b79e1d4a9b173d60e5c10e;hpb=7b5ea4fcdf2819e070665ab5610f8b48e3867c10 diff --git a/gas/testsuite/gas/sh/err-mova.s b/gas/testsuite/gas/sh/err-mova.s new file mode 100644 index 0000000..eb09203 --- /dev/null +++ b/gas/testsuite/gas/sh/err-mova.s @@ -0,0 +1,20 @@ +! { dg-do assemble } + +! Check that an error occurs on mova instructions with an unaligned or +! negative offset. + +negative: + .word 0 + + .align 2 +start: + mova start, r0 ! { dg-error "negative offset|pcrel too far" } + mova negative, r0 ! { dg-error "negative offset|pcrel too far" } + mova aligned, r0 ! ok + mova unaligned, r0 ! { dg-error "unaligned destination" } + + .align 2 +aligned: + .word 1 +unaligned: + .word 2