From df41fdf4bd2722ee610ecf31d92527aaad1fab76 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 4 Apr 2016 20:45:30 -0700 Subject: [PATCH] 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. --- gas/ChangeLog | 7 +++++++ gas/testsuite/gas/i386/i386.exp | 1 + gas/testsuite/gas/i386/pr19498.d | 13 +++++++++++++ gas/testsuite/gas/i386/pr19498.s | 8 ++++++++ 4 files changed, 29 insertions(+) create mode 100644 gas/testsuite/gas/i386/pr19498.d create mode 100644 gas/testsuite/gas/i386/pr19498.s diff --git a/gas/ChangeLog b/gas/ChangeLog index 46ce10d296..7c1c6a009e 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,10 @@ +2016-04-04 H.J. Lu + + 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 * config/tc-arc.h: Include 'opcode/arc.h'. diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp index f1e7611efb..9c4fdeabb8 100644 --- a/gas/testsuite/gas/i386/i386.exp +++ b/gas/testsuite/gas/i386/i386.exp @@ -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" diff --git a/gas/testsuite/gas/i386/pr19498.d b/gas/testsuite/gas/i386/pr19498.d new file mode 100644 index 0000000000..35e86ca5bc --- /dev/null +++ b/gas/testsuite/gas/i386/pr19498.d @@ -0,0 +1,13 @@ +#objdump: -dwr + +.*: +file format .* + + +Disassembly of section .text: + +0+ : +[ ]*[a-f0-9]+: 90 nop + +0+1 : +[ ]*[a-f0-9]+: eb fd jmp 0 +#pass diff --git a/gas/testsuite/gas/i386/pr19498.s b/gas/testsuite/gas/i386/pr19498.s new file mode 100644 index 0000000000..0cf4079f57 --- /dev/null +++ b/gas/testsuite/gas/i386/pr19498.s @@ -0,0 +1,8 @@ + .text + .globl callmefirst +callmefirst: + nop + .globl callmesecond +callmesecond: + jmp callmealias.lto_priv.0 + .weakref callmealias.lto_priv.0,callmefirst