]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Add test case for ADR :got:foo
authorMarcus Shawcroft <marcus.shawcroft@arm.com>
Thu, 5 Feb 2015 13:16:33 +0000 (13:16 +0000)
committerMarcus Shawcroft <marcus.shawcroft@arm.com>
Thu, 26 Feb 2015 22:23:09 +0000 (22:23 +0000)
The modifier :got: does not make sense on an ADR instruction.  Add a
test case to ensure we gripe.

gas/testsuite/ChangeLog
gas/testsuite/gas/aarch64/diagnostic.l
gas/testsuite/gas/aarch64/diagnostic.s

index 96697ebec6c176ddd3e30af8fa359584eab3f687..8884e3563e3ed3d11ed08731c8f423c5e59d28c7 100644 (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.
index 61ce5d269468be7b6037bf4aa991e7d6d774047d..50f2a6db2b2dc01711d776f79e63034259c4bd18 100644 (file)
 [^:]*: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'
index 88001dae8315a0420d93a8d88f14dcf94421c8be..6dbe6e19fb5ae527655ae2787ef9214003b624ea 100644 (file)
        str     x1, [x1], #8
        stp     x0, x1, [x0, #16]!
        ldp     x0, x1, [x1], #16
+       adr     x2, :got:s1