From 0cd63f3d26e55bafcd3304a36f517a20f6dc9e44 Mon Sep 17 00:00:00 2001 From: Kai Tietz Date: Wed, 9 Jul 2008 10:28:12 +0000 Subject: [PATCH] 2008-07-09 Kai Tietz * gas/i386/i386.exp (x86-64-pcrel): Disable for w64. (x86-64-sse5): Likewise. (x86-64-opcode-inval): Likewise. (x86-64-opcode-inval-intel): Likewise. (x86-64-w64-pcrel): New. * gas/i386/x86-64-w64-pcrel.d: New. --- gas/testsuite/ChangeLog | 9 +++++++++ gas/testsuite/gas/i386/i386.exp | 16 ++++++++++++---- gas/testsuite/gas/i386/x86-64-w64-pcrel.d | 20 ++++++++++++++++++++ 3 files changed, 41 insertions(+), 4 deletions(-) create mode 100644 gas/testsuite/gas/i386/x86-64-w64-pcrel.d diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index bf70efe9696..d3cead1b6a9 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2008-07-09 Kai Tietz + + * gas/i386/i386.exp (x86-64-pcrel): Disable for w64. + (x86-64-sse5): Likewise. + (x86-64-opcode-inval): Likewise. + (x86-64-opcode-inval-intel): Likewise. + (x86-64-w64-pcrel): New. + * gas/i386/x86-64-w64-pcrel.d: New. + 2008-07-07 Adam Nemet * gas/mips/mips32.s: Move out coprocessor2 insns from here ... diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp index 0afe9eb3a2c..338e6d77218 100644 --- a/gas/testsuite/gas/i386/i386.exp +++ b/gas/testsuite/gas/i386/i386.exp @@ -191,7 +191,11 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] t run_dump_test "x86-64-addr32" run_dump_test "x86-64-addr32-intel" run_dump_test "x86-64-opcode" - run_dump_test "x86-64-pcrel" + if { ![istarget "*-*-mingw*"] } then { + run_dump_test "x86-64-pcrel" + } else { + run_dump_test "x86-64-w64-pcrel" + } run_dump_test "x86-64-rip" run_dump_test "x86-64-rip-intel" run_dump_test "x86-64-stack" @@ -239,15 +243,19 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] t run_dump_test "x86-64-simd" run_dump_test "x86-64-simd-intel" run_dump_test "x86-64-simd-suffix" - run_dump_test "x86-64-sse5" + if { ![istarget "*-*-mingw*"] } then { + run_dump_test "x86-64-sse5" + } run_dump_test "x86-64-mem" run_dump_test "x86-64-mem-intel" run_dump_test "x86-64-reg" run_dump_test "x86-64-reg-intel" run_dump_test "x86-64-sib" run_dump_test "x86-64-sib-intel" - run_dump_test "x86-64-opcode-inval" - run_dump_test "x86-64-opcode-inval-intel" + if { ![istarget "*-*-mingw*"] } then { + run_dump_test "x86-64-opcode-inval" + run_dump_test "x86-64-opcode-inval-intel" + } run_dump_test "rexw" run_dump_test "x86-64-arch-1" run_dump_test "x86-64-arch-2" diff --git a/gas/testsuite/gas/i386/x86-64-w64-pcrel.d b/gas/testsuite/gas/i386/x86-64-w64-pcrel.d new file mode 100644 index 00000000000..b3eb1d8450a --- /dev/null +++ b/gas/testsuite/gas/i386/x86-64-w64-pcrel.d @@ -0,0 +1,20 @@ +#objdump: -drw +#name: x86-64 w64 pcrel +#source: x86-64-pcrel.s + +.*: +file format .* + +Disassembly of section .text: + +0+000 <_start>: +[ ]*[0-9a-f]+:[ ]+b0 02[ ]+movb?[ ]+\$(0x)?2,%al[ ]*[0-9a-f]+:[ ]+R_X86_64_PC8[ ]+xtrn +[ ]*[0-9a-f]+:[ ]+66 b8 04 00[ ]+movw?[ ]+\$(0x)?4,%ax[ ]*[0-9a-f]+:[ ]+R_X86_64_PC16[ ]+xtrn +[ ]*[0-9a-f]+:[ ]+b8 05( 00){3}[ ]+movl?[ ]+\$(0x)?5,%eax[ ]*[0-9a-f]+:[ ]+R_X86_64_PC32[ ]+xtrn +[ ]*[0-9a-f]+:[ ]+48 c7 c0 07( 00){3}[ ]+movq?[ ]+\$(0x)?7,%rax[ ]*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