From: Andreas Krebbel Date: Thu, 19 Oct 2017 07:02:15 +0000 (+0200) Subject: Fix fill-1 testcase X-Git-Tag: users/gbenson/thread_db-test/2017-11-22~404 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fa57faa0dad237b3f418f17e7ee2114c32da818a;p=thirdparty%2Fbinutils-gdb.git Fix fill-1 testcase This fixes various issues with the fill-1 testcase causing fails on a couple of targets. gas/ChangeLog: 2017-10-19 Andreas Krebbel * 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. --- diff --git a/gas/ChangeLog b/gas/ChangeLog index cb90c994cd6..23b2faa19af 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,11 @@ +2017-10-19 Andreas Krebbel + + * 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 * 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 index 00000000000..da5933e5421 --- /dev/null +++ b/gas/testsuite/gas/all/fill-1.d @@ -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 .* diff --git a/gas/testsuite/gas/all/fill-1.s b/gas/testsuite/gas/all/fill-1.s index e72cbf1c550..34c52ccbd78 100644 --- a/gas/testsuite/gas/all/fill-1.s +++ b/gas/testsuite/gas/all/fill-1.s @@ -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 diff --git a/gas/testsuite/gas/all/gas.exp b/gas/testsuite/gas/all/gas.exp index 6a68bccdbd1..942b0b42656 100644 --- a/gas/testsuite/gas/all/gas.exp +++ b/gas/testsuite/gas/all/gas.exp @@ -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"