From c0f91ba6d9e8b655601a43eb83b64e8d503e854e Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Wed, 21 Mar 2007 19:33:06 +0000 Subject: [PATCH] 2003-03-21 H.J. Lu * gas/i386/i386.exp: Run nops-3. * gas/i386/nops-3.d: New file. * gas/i386/nops-3.s: Likewise. --- gas/testsuite/ChangeLog | 7 ++++++ gas/testsuite/gas/i386/i386.exp | 1 + gas/testsuite/gas/i386/nops-3.d | 43 +++++++++++++++++++++++++++++++++ gas/testsuite/gas/i386/nops-3.s | 6 +++++ 4 files changed, 57 insertions(+) create mode 100644 gas/testsuite/gas/i386/nops-3.d create mode 100644 gas/testsuite/gas/i386/nops-3.s diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index d1fd2b9511..e7024ee4f2 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2003-03-21 H.J. Lu + + * gas/i386/i386.exp: Run nops-3. + + * gas/i386/nops-3.d: New file. + * gas/i386/nops-3.s: Likewise. + 2007-03-20 Mark Shinwell * gas/arm/mul-overlap.s: Don't use %type. diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp index 1f141f252e..cfef27549a 100644 --- a/gas/testsuite/gas/i386/i386.exp +++ b/gas/testsuite/gas/i386/i386.exp @@ -83,6 +83,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]] run_dump_test "nops-2" run_dump_test "nops-2-i386" run_dump_test "nops-2-merom" + run_dump_test "nops-3" run_dump_test "addr16" run_dump_test "addr32" diff --git a/gas/testsuite/gas/i386/nops-3.d b/gas/testsuite/gas/i386/nops-3.d new file mode 100644 index 0000000000..10cc95c3fc --- /dev/null +++ b/gas/testsuite/gas/i386/nops-3.d @@ -0,0 +1,43 @@ +#source: nops-3.s +#objdump: -drw +#name: i386 nops 3 + +.*: +file format .* + +Disassembly of section .text: + +0+ : +[ ]*0:[ ]+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