Commit | Line | Data |
---|---|---|
52b5ca5b AS |
1 | ! { dg-do assemble } |
2 | ||
3 | ! Check that an error occurs on mova instructions with an unaligned or | |
4 | ! negative offset. | |
5 | ||
6 | negative: | |
7 | .word 0 | |
8 | ||
9 | .align 2 | |
10 | start: | |
11 | mova start, r0 ! { dg-error "negative offset|pcrel too far" } | |
12 | mova negative, r0 ! { dg-error "negative offset|pcrel too far" } | |
13 | mova aligned, r0 ! ok | |
14 | mova unaligned, r0 ! { dg-error "unaligned destination" } | |
15 | ||
16 | .align 2 | |
17 | aligned: | |
18 | .word 1 | |
19 | unaligned: | |
20 | .word 2 |