Add a new testcase for PR gas/12049.
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 25 Oct 2010 09:17:12 +0000 (09:17 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 25 Oct 2010 09:17:12 +0000 (09:17 +0000)
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.

gas/testsuite/ChangeLog
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/x86-64-relax-1.d [new file with mode: 0644]
gas/testsuite/gas/i386/x86-64-relax-1.s [new file with mode: 0644]

index ab204d928bcba7bc68285b2b028abacb98ac7429..722ce0b6e9c155a3b98447a60036fdbb031d4f5b 100644 (file)
@@ -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.
index 18710f934b8614dc3ab0a0cc9dc1ccf2d2f0906c..fd58530ba1e67585487252ed73f053fe2cb64a7f 100644 (file)
@@ -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 (file)
index 0000000..ebf7267
--- /dev/null
@@ -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 (file)
index 0000000..2db76d4
--- /dev/null
@@ -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
This page took 0.033028 seconds and 4 git commands to generate.