aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorMarcus Shawcroft <marcus.shawcroft@arm.com>2015-02-05 13:16:33 +0000
committerMarcus Shawcroft <marcus.shawcroft@arm.com>2015-02-26 22:23:09 +0000
commit3e29ed9f07740a848432a1825c3fb466cdb98a4a (patch)
tree46620c770b86e65f6c3ba49acb221fbf1f3d49bb /gas
parent7366006f66f6b781832e397dd177ed8698d4fdc7 (diff)
downloadbinutils-3e29ed9f07740a848432a1825c3fb466cdb98a4a.zip
binutils-3e29ed9f07740a848432a1825c3fb466cdb98a4a.tar.gz
binutils-3e29ed9f07740a848432a1825c3fb466cdb98a4a.tar.bz2
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.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/aarch64/diagnostic.l1
-rw-r--r--gas/testsuite/gas/aarch64/diagnostic.s1
3 files changed, 7 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 96697eb..8884e35 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -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.
diff --git a/gas/testsuite/gas/aarch64/diagnostic.l b/gas/testsuite/gas/aarch64/diagnostic.l
index 61ce5d2..50f2a6d 100644
--- a/gas/testsuite/gas/aarch64/diagnostic.l
+++ b/gas/testsuite/gas/aarch64/diagnostic.l
@@ -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'
diff --git a/gas/testsuite/gas/aarch64/diagnostic.s b/gas/testsuite/gas/aarch64/diagnostic.s
index 88001da..6dbe6e1 100644
--- a/gas/testsuite/gas/aarch64/diagnostic.s
+++ b/gas/testsuite/gas/aarch64/diagnostic.s
@@ -123,3 +123,4 @@
str x1, [x1], #8
stp x0, x1, [x0, #16]!
ldp x0, x1, [x1], #16
+ adr x2, :got:s1