aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog9
-rw-r--r--gas/testsuite/gas/i386/i386.exp16
-rw-r--r--gas/testsuite/gas/i386/x86-64-w64-pcrel.d20
3 files changed, 41 insertions, 4 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index bf70efe..d3cead1 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,12 @@
+2008-07-09 Kai Tietz <kai.tietz@onevision.com>
+
+ * 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 <anemet@caviumnetworks.com>
* 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 0afe9eb..338e6d7 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 0000000..b3eb1d8
--- /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[ ]*[0-9a-f]+:[ ]+R_X86_64_PC32[ ]+xtrn
+[ ]*[0-9a-f]+:[ ]+48 b8 0a( 00){7}[ ]+mov(abs)?q?[ ]+\$(0x)?a,%rax[ ]*[0-9a-f]+:[ ]+R_X86_64_PC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