Add testcase for PR gas/12049.

2010-10-19  H.J. Lu  <hongjiu.lu@intel.com>

	PR gas/12049
	* gas/i386/i386.exp: Run relax-1 and relax-2.

	* gas/i386/relax-1.d: New.
	* gas/i386/relax-1.s: Likewise.
	* gas/i386/relax-2.d: Likewise.
	* gas/i386/relax-2.s: Likewise.
This commit is contained in:
H.J. Lu 2010-10-19 17:13:30 +00:00
parent 026ffab798
commit 5d1268c689
6 changed files with 64 additions and 0 deletions

View file

@ -1,3 +1,13 @@
2010-10-19 H.J. Lu <hongjiu.lu@intel.com>
PR gas/12049
* gas/i386/i386.exp: Run relax-1 and relax-2.
* gas/i386/relax-1.d: New.
* gas/i386/relax-1.s: Likewise.
* gas/i386/relax-2.d: Likewise.
* gas/i386/relax-2.s: Likewise.
2010-10-18 Kai Tietz <kaI.tietz@onevision.com>
* gas/i386/disp32.d: Adjust initial symbol check.

View file

@ -199,6 +199,8 @@ 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"

View file

@ -0,0 +1,16 @@
#name: i386 relax 1
#objdump: -dw
.*: +file format .*
Disassembly of section .text:
0+ <.text>:
#...
e: e9 8d 00 00 00 jmp 0xa0
#...
21: eb 7d jmp 0xa0
#...
a0: 90 nop
#pass

View file

@ -0,0 +1,10 @@
.text
.fill 14, 1, 0x90
jmp .LBB1_23
.fill 14, 1, 0x90
jmp .LBB1_23
.fill 18, 1, 0x90
.align 16, 0x90
.fill 96, 1, 0x90
.LBB1_23:
nop

View file

@ -0,0 +1,16 @@
#name: i386 relax 3
#objdump: -dw
.*: +file format .*
Disassembly of section .text:
0+ <.text>:
#...
38: 0f 85 88 00 00 00 jne 0xc6
#...
48: 75 7c jne 0xc6
#...
c6: 90 nop
#pass

View file

@ -0,0 +1,10 @@
.text
.fill 56, 1, 0x90
jne .LBB0_43
.fill 10, 1, 0x90
jne .LBB0_43
.fill 5, 1, 0x90
.align 16, 0x90
.fill 118, 1, 0x90
.LBB0_43:
nop