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.
This commit is contained in:
H.J. Lu 2010-10-25 09:17:12 +00:00
parent 2a2294071c
commit 7898a2b16e
4 changed files with 96 additions and 2 deletions

View 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.

View 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"

View File

@ -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

View File

@ -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