aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2016-03-15 22:38:41 +0000
committerAndrew Burgess <andrew.burgess@embecosm.com>2016-03-21 16:44:11 +0000
commit62f6f9c28ac4df0ebafbbbfdb5319e74582db5a2 (patch)
treee7de028f6cd6d39fe219c0b10c3908fdd933af9f /gas/testsuite
parente1fa0163505af867009ea73fc5f705162120e795 (diff)
downloadgdb-62f6f9c28ac4df0ebafbbbfdb5319e74582db5a2.zip
gdb-62f6f9c28ac4df0ebafbbbfdb5319e74582db5a2.tar.gz
gdb-62f6f9c28ac4df0ebafbbbfdb5319e74582db5a2.tar.bz2
gas/arc: Fix test for big-endian arc
The inline-data test checks the specific bytes laid down by the assembler, and so relies on the endianness of the target. I could change the expected results to be endian agnostic, however, I worried that a bug in the assembler that gets the endianness wrong would then slip through. Instead I add a new test for big-endian arc, and restrict the existing test to little-endian arc. gas/ChangeLog: * testsuite/gas/arc/inline-data-1.d: Add target restriction. * testsuite/gas/arc/inline-data-2.d: New file.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/arc/inline-data-1.d1
-rw-r--r--gas/testsuite/gas/arc/inline-data-2.d9
2 files changed, 10 insertions, 0 deletions
diff --git a/gas/testsuite/gas/arc/inline-data-1.d b/gas/testsuite/gas/arc/inline-data-1.d
index ce5c272..9b5e442 100644
--- a/gas/testsuite/gas/arc/inline-data-1.d
+++ b/gas/testsuite/gas/arc/inline-data-1.d
@@ -1,4 +1,5 @@
#as: -mcpu=arc700
+#target: arc-*
#objdump: -sj .text
.*: +file format .*arc.*
diff --git a/gas/testsuite/gas/arc/inline-data-2.d b/gas/testsuite/gas/arc/inline-data-2.d
new file mode 100644
index 0000000..60435d4
--- /dev/null
+++ b/gas/testsuite/gas/arc/inline-data-2.d
@@ -0,0 +1,9 @@
+#as: -mcpu=arc700
+#target: arceb-*
+#objdump: -sj .text
+#source: inline-data-1.s
+
+.*: +file format .*arc.*
+
+Contents of section .text:
+ [0-9a-f]+ aabbccdd eeff .*