]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Fix fill-1 testcase
authorAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Thu, 19 Oct 2017 07:02:15 +0000 (09:02 +0200)
committerAndreas Krebbel <krebbel@linux.vnet.ibm.com>
Thu, 19 Oct 2017 07:02:15 +0000 (09:02 +0200)
This fixes various issues with the fill-1 testcase causing fails on a
couple of targets.

gas/ChangeLog:

2017-10-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>

* testsuite/gas/all/fill-1.s: Use normal labels.  Change .text to
.data. Pick different values.  Use .dc.w instead of .word.
* testsuite/gas/all/fill-1.d: New objdump output check.
* testsuite/gas/all/gas.exp: Use run_dump_test to execute fill-1
testcase.

gas/ChangeLog
gas/testsuite/gas/all/fill-1.d [new file with mode: 0644]
gas/testsuite/gas/all/fill-1.s
gas/testsuite/gas/all/gas.exp

index cb90c994cd6ec8d2abdd8bdab00ea38a355ad99d..23b2faa19af485e78307be2916c10110b2625cab 100644 (file)
@@ -1,3 +1,11 @@
+2017-10-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
+
+       * testsuite/gas/all/fill-1.s: Use normal labels.  Change .text to
+       .data. Pick different values.  Use .dc.w instead of .word.
+       * testsuite/gas/all/fill-1.d: New objdump output check.
+       * testsuite/gas/all/gas.exp: Use run_dump_test to execute fill-1
+       testcase.
+
 2017-10-18  Palmer Dabbelt  <palmer@dabbelt.com>
 
        * testsuite/gas/all/align.d: Mark as unsupported on RISC-V.
diff --git a/gas/testsuite/gas/all/fill-1.d b/gas/testsuite/gas/all/fill-1.d
new file mode 100644 (file)
index 0000000..da5933e
--- /dev/null
@@ -0,0 +1,7 @@
+#objdump: -s -j .data -j "\$DATA\$"
+#name: fill test with forward labels
+
+.*: +file format .*
+
+Contents of section (\.data|\$DATA\$):
+ [^ ]* 0a0a0d0d 0b0b0c0c .*
index e72cbf1c550cbcb71d134198cd7efbf8ce244671..34c52ccbd78a123e106e6b061b239be4d11da24d 100644 (file)
@@ -1,5 +1,7 @@
-       .text
-       .fill (2f-1f), 1, 0x90
-1:
-        .word 42
-2:
+       .data
+       .dc.w 0x0a0a
+       .fill (.L2-.L1), 1, 0x0d
+.L1:
+       .dc.w 0x0b0b
+.L2:
+       .dc.w 0x0c0c
index 6a68bccdbd1a78e076dc8d88e9a9acfb75d50db9..942b0b426566f2e5e43d5b3a0e4d7203dfcd483e 100644 (file)
@@ -488,4 +488,4 @@ run_dump_test "org-4"
 run_dump_test "org-5"
 run_dump_test "org-6"
 
-gas_test "fill-1.s" "" "" "test .fill forward label references"
+run_dump_test "fill-1"