Add a testcase for PR gas/19498

PR gas/19498
	* testsuite/gas/i386/i386.exp: Run pr19498.
	* testsuite/gas/i386/pr19498.d: New file.
	* testsuite/gas/i386/pr19498.s: Likewise.
This commit is contained in:
H.J. Lu 2016-04-04 20:45:30 -07:00
parent dff331be28
commit df41fdf4bd
4 changed files with 29 additions and 0 deletions

View File

@ -1,3 +1,10 @@
2016-04-04 H.J. Lu <hongjiu.lu@intel.com>
PR gas/19498
* testsuite/gas/i386/i386.exp: Run pr19498.
* testsuite/gas/i386/pr19498.d: New file.
* testsuite/gas/i386/pr19498.s: Likewise.
2016-04-04 Andrew Burgess <andrew.burgess@embecosm.com>
* config/tc-arc.h: Include 'opcode/arc.h'.

View File

@ -443,6 +443,7 @@ if [expr [istarget "i*86-*-*"] || [istarget "x86_64-*-*"]] then {
run_list_test "reg-bad" ""
run_list_test "space1" "-al"
run_dump_test rept
run_dump_test pr19498
if [is_elf_format] then {
run_list_test_stdin "list-1" "-al"
run_list_test_stdin "list-2" "-al"

View File

@ -0,0 +1,13 @@
#objdump: -dwr
.*: +file format .*
Disassembly of section .text:
0+ <callmefirst>:
[ ]*[a-f0-9]+: 90 nop
0+1 <callmesecond>:
[ ]*[a-f0-9]+: eb fd jmp 0 <callmefirst>
#pass

View File

@ -0,0 +1,8 @@
.text
.globl callmefirst
callmefirst:
nop
.globl callmesecond
callmesecond:
jmp callmealias.lto_priv.0
.weakref callmealias.lto_priv.0,callmefirst