aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-10-25 09:17:12 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-10-25 09:17:12 +0000
commit7898a2b16e1bae99bcbf2315c8d6fd3332d7b74d (patch)
treeed097a1e1fb6ab701ffb300af27a33d732d52853 /gas
parent2a2294071c2330ec46f0fb3dc35aad9ae306abd8 (diff)
downloadgdb-7898a2b16e1bae99bcbf2315c8d6fd3332d7b74d.zip
gdb-7898a2b16e1bae99bcbf2315c8d6fd3332d7b74d.tar.gz
gdb-7898a2b16e1bae99bcbf2315c8d6fd3332d7b74d.tar.bz2
Add a new testcase for PR gas/12049.
2010-10-25 H.J. Lu <hongjiu.lu@intel.com> PR gas/12049 * gas/i386/i386.exp: Run relax-1 and relax-2 for all 32bit targets. Run x86-64-relax-1. * gas/i386/x86-64-relax-1.d: New. * gas/i386/x86-64-relax-1.s: Likewise.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog9
-rw-r--r--gas/testsuite/gas/i386/i386.exp5
-rw-r--r--gas/testsuite/gas/i386/x86-64-relax-1.d14
-rw-r--r--gas/testsuite/gas/i386/x86-64-relax-1.s70
4 files changed, 96 insertions, 2 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index ab204d9..722ce0b 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,12 @@
+2010-10-25 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gas/12049
+ * gas/i386/i386.exp: Run relax-1 and relax-2 for all 32bit
+ targets. Run x86-64-relax-1.
+
+ * gas/i386/x86-64-relax-1.d: New.
+ * gas/i386/x86-64-relax-1.s: Likewise.
+
2010-10-24 Maciej W. Rozycki <macro@linux-mips.org>
* gas/mips/mips.exp: Simplify enabling of MIPS16 testing.
diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp
index 18710f9..fd58530 100644
--- a/gas/testsuite/gas/i386/i386.exp
+++ b/gas/testsuite/gas/i386/i386.exp
@@ -42,6 +42,8 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
run_dump_test "amd"
run_dump_test "katmai"
run_dump_test "jump"
+ run_dump_test "relax-1"
+ run_dump_test "relax-2"
run_dump_test "ssemmx2"
run_dump_test "sse2"
run_dump_test "sub"
@@ -199,8 +201,6 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
run_dump_test "intelpic"
run_dump_test "relax"
- run_dump_test "relax-1"
- run_dump_test "relax-2"
run_dump_test "gotpc"
run_dump_test "tlsd"
run_dump_test "tlspic"
@@ -272,6 +272,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] t
run_list_test "x86-64-segment" "-al"
run_list_test "x86-64-inval-seg" "-al"
run_dump_test "x86-64-branch"
+ run_dump_test "x86-64-relax-1"
run_dump_test "svme64"
run_dump_test "x86-64-amdfam10"
run_dump_test "x86-64-vmx"
diff --git a/gas/testsuite/gas/i386/x86-64-relax-1.d b/gas/testsuite/gas/i386/x86-64-relax-1.d
new file mode 100644
index 0000000..ebf7267
--- /dev/null
+++ b/gas/testsuite/gas/i386/x86-64-relax-1.d
@@ -0,0 +1,14 @@
+#name: x86-64 relax 1
+#objdump: -dw
+
+.*: +file format .*
+
+
+Disassembly of section .text:
+
+0+ <.text>:
+#...
+ 358: 74 06 je 0x360
+ 35a: 66 0f 1f 44 00 00 nopw 0x0\(%rax,%rax,1\)
+ 360: 90 nop
+#pass
diff --git a/gas/testsuite/gas/i386/x86-64-relax-1.s b/gas/testsuite/gas/i386/x86-64-relax-1.s
new file mode 100644
index 0000000..2db76d4
--- /dev/null
+++ b/gas/testsuite/gas/i386/x86-64-relax-1.s
@@ -0,0 +1,70 @@
+ .text
+ je .LBB0_46
+ .zero 6, 0x90
+ je .LBB0_46
+.LBB0_8:
+ .zero 134, 0x90
+ je .LBB0_8
+ .zero 4, 0x90
+ je .LBB0_8
+ .zero 8, 0x90
+ je .LBB0_46
+ .zero 10, 0x90
+ je .LBB0_8
+ .zero 4, 0x90
+ je .LBB0_8
+ movq 304(%rsp), %r14
+ .zero 2, 0x90
+ je .LBB0_8
+ je .LBB0_8
+ movq 256(%rsp), %r14
+ .zero 3, 0x90
+ je .LBB0_46
+ .zero 10, 0x90
+ je .LBB0_8
+ .zero 13, 0x90
+ je .LBB0_8
+ leaq 432(%rsp), %rsi
+ je .LBB0_8
+ movq 176(%rsp), %r14
+ je .LBB0_46
+ je .LBB0_8
+ je .LBB0_8
+ leaq 424(%rsp), %rsi
+ je .LBB0_8
+ .zero 22, 0x90
+ je .LBB0_8
+ .zero 11, 0x90
+ je .LBB0_8
+ leaq 416(%rsp), %rsi
+ je .LBB0_8
+ .zero 21, 0x90
+ je .LBB0_46
+ .zero 8, 0x90
+ je .LBB0_8
+ .zero 11, 0x90
+ je .LBB0_8
+ .zero 7, 0x90
+ je .LBB0_8
+ .zero 22, 0x90
+ je .LBB0_46
+ .zero 131, 0x90
+.LBB0_46:
+ .align 16, 0x90
+ movq 168(%rsp), %rax
+ .zero 3, 0x90
+ je .LBB1_35
+ .align 16, 0x90
+ .zero 2, 0x90
+ je .LBB1_35
+ .zero 37, 0x90
+ je .LBB1_35
+ .zero 59, 0x90
+ je .LBB1_35
+ .zero 68, 0x90
+ je .LBB1_17
+ .align 16, 0x90
+.LBB1_17:
+ .zero 85, 0x90
+.LBB1_35:
+ nop