Add test case for ADR :got:foo

The modifier :got: does not make sense on an ADR instruction.  Add a
test case to ensure we gripe.
This commit is contained in:
Marcus Shawcroft 2015-02-05 13:16:33 +00:00
parent 7366006f66
commit 3e29ed9f07
3 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,8 @@
2015-02-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
* gas/aarch64/diagnostic.s: Add ADR test.
* gas/aarch64/diagnostic.l: Likewise.
2015-02-25 Andrew Burgess <andrew.burgess@embecosm.com>
* gas/avr/avr-prop-1.d: New file.

View file

@ -114,3 +114,4 @@
[^:]*:123: Warning: unpredictable transfer with writeback -- `str x1,\[x1\],#8'
[^:]*:124: Warning: unpredictable transfer with writeback -- `stp x0,x1,\[x0,#16\]!'
[^:]*:125: Warning: unpredictable transfer with writeback -- `ldp x0,x1,\[x1\],#16'
[^:]*:126: Error: this relocation modifier is not allowed on this instruction at operand 2 -- `adr x2,:got:s1'

View file

@ -123,3 +123,4 @@
str x1, [x1], #8
stp x0, x1, [x0, #16]!
ldp x0, x1, [x1], #16
adr x2, :got:s1