From: Andrew Burgess Date: Tue, 15 Mar 2016 22:38:41 +0000 (+0000) Subject: gas/arc: Fix test for big-endian arc X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=62f6f9c28ac4df0ebafbbbfdb5319e74582db5a2;p=binutils-gdb.git 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index 53c3b3b625a..55e2995853d 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2016-03-21 Andrew Burgess + + * testsuite/gas/arc/inline-data-1.d: Add target restriction. + * testsuite/gas/arc/inline-data-2.d: New file. + 2016-03-21 Nick Clifton * atof-generic.c: Replace use of alloca with call to xmalloc. diff --git a/gas/testsuite/gas/arc/inline-data-1.d b/gas/testsuite/gas/arc/inline-data-1.d index ce5c272a6fe..9b5e4423609 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 00000000000..60435d40a77 --- /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 .*