mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2024-12-16 16:47:52 +00:00
Add a testase for PR gas/12589.
2011-03-17 H.J. Lu <hongjiu.lu@intel.com> PR gas/12589 * gas/i386/pr12589-1.d: New. * gas/i386/pr12589-1.s: Likewise. * gas/i386/i386.exp: Run pr12589-1.
This commit is contained in:
parent
c60ce34ad5
commit
a5f21126be
@ -1,3 +1,11 @@
|
||||
2011-03-17 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
PR gas/12589
|
||||
* gas/i386/pr12589-1.d: New.
|
||||
* gas/i386/pr12589-1.s: Likewise.
|
||||
|
||||
* gas/i386/i386.exp: Run pr12589-1.
|
||||
|
||||
2011-03-16 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
* gas/i386/bad-size.d: New.
|
||||
|
@ -239,6 +239,9 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_32_check]]
|
||||
run_dump_test "secrel"
|
||||
}
|
||||
|
||||
# Miscellaneous tests.
|
||||
run_dump_test "pr12589-1"
|
||||
|
||||
set ASFLAGS "$old_ASFLAGS"
|
||||
}
|
||||
|
||||
|
16
gas/testsuite/gas/i386/pr12589-1.d
Normal file
16
gas/testsuite/gas/i386/pr12589-1.d
Normal file
@ -0,0 +1,16 @@
|
||||
#name: i386 jump
|
||||
#objdump: -drw
|
||||
|
||||
.*: +file format .*i386.*
|
||||
|
||||
Disassembly of section .text:
|
||||
|
||||
0+ <_start>:
|
||||
[ ]*[a-f0-9]+: eb 02 jmp 4 <scn_pnp>
|
||||
|
||||
0+2 <zerob>:
|
||||
...
|
||||
|
||||
0+4 <scn_pnp>:
|
||||
[ ]*[a-f0-9]+: 89 c0 mov %eax,%eax
|
||||
#pass
|
9
gas/testsuite/gas/i386/pr12589-1.s
Normal file
9
gas/testsuite/gas/i386/pr12589-1.s
Normal file
@ -0,0 +1,9 @@
|
||||
.text
|
||||
.globl _start
|
||||
_start:
|
||||
jmp scn_pnp
|
||||
zerob:
|
||||
zeroln = zerob - _start
|
||||
.=.+zeroln
|
||||
scn_pnp:
|
||||
mov %eax,%eax
|
Loading…
Reference in New Issue
Block a user