2009-10-08 H.J. Lu <hongjiu.lu@intel.com>

PR gas/10704
	* gas/i386/intelok.s: Move 2 PIC tests to ...
	* gas/i386/intelpic.s: Here.

	* gas/i386/intelok.d: Updated.
	* gas/i386/intelpic.d: Likewise.
This commit is contained in:
H.J. Lu 2009-10-08 12:44:57 +00:00
parent b9ed7c0818
commit 6f4c35a5fb
5 changed files with 22 additions and 16 deletions

View File

@ -1,3 +1,12 @@
2009-10-08 H.J. Lu <hongjiu.lu@intel.com>
PR gas/10704
* gas/i386/intelok.s: Move 2 PIC tests to ...
* gas/i386/intelpic.s: Here.
* gas/i386/intelok.d: Updated.
* gas/i386/intelpic.d: Likewise.
2009-10-07 H.J. Lu <hongjiu.lu@intel.com>
PR gas/10704

View File

@ -204,6 +204,4 @@ Disassembly of section .text:
[ ]*[0-9a-f]+: ea 03 00 00 00 05 00[ ]+l?jmp[ ]+0x5[,:]0x3
[ ]*[0-9a-f]+: ff 15 00 00 00 00[ ]+call[ ]+DWORD PTR (ds:)?(0x)?0
[ ]*[0-9a-f]+: 66 ff 25 00 00 00 00[ ]+jmp[ ]+WORD PTR (ds:)?(0x)?0
[ ]*[a-f0-9]+: ff 24 85 3c 05 00 00 jmp DWORD PTR \[eax\*4\+0x53c\]
[ ]*[a-f0-9]+: 8d 83 4a 05 00 00 lea eax,\[ebx\+0x54a\]
#pass

View File

@ -215,8 +215,3 @@ start:
jmp 5:[3]
call dword ptr xtrn
jmp word ptr xtrn
.L11:
jmp DWORD PTR[ .L11 + eax * 4 ]
.LC0:
lea eax, DWORD PTR[ .LC0@GOTOFF + ebx ]

View File

@ -6,11 +6,12 @@
Disassembly of section .text:
0+000 <gs_foo>:
0: c3 [ ]*ret
0+ <gs_foo>:
[ ]*[a-f0-9]+: c3 ret
0+001 <bar>:
1: 8d 83 00 00 00 00 [ ]*lea 0x0\(%ebx\),%eax
7: 8b 83 00 00 00 00 [ ]*mov 0x0\(%ebx\),%eax
d: 90 [ ]*nop
[ ]*...
0+1 <bar>:
[ ]*[a-f0-9]+: 8d 83 14 00 00 00 lea 0x14\(%ebx\),%eax
[ ]*[a-f0-9]+: 8b 83 00 00 00 00 mov 0x0\(%ebx\),%eax
[ ]*[a-f0-9]+: ff 24 85 1a 00 00 00 jmp \*0x1a\(,%eax,4\)
[ ]*[a-f0-9]+: 8d 83 14 00 00 00 lea 0x14\(%ebx\),%eax
#pass

View File

@ -7,5 +7,8 @@ gs_foo:
bar:
lea eax, .LC0@GOTOFF[ebx]
mov eax, DWORD PTR gs_foo@GOT[ebx]
nop
.p2align 4,0
.L11:
jmp DWORD PTR[ .L11 + eax * 4 ]
.LC0:
lea eax, DWORD PTR[ .LC0@GOTOFF + ebx ]