diff options
Diffstat (limited to 'gas')
-rw-r--r-- | gas/testsuite/ChangeLog | 9 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/i386.exp | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-relax-1.d | 14 | ||||
-rw-r--r-- | gas/testsuite/gas/i386/x86-64-relax-1.s | 70 |
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 |