aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-04-04 20:45:30 -0700
committerH.J. Lu <hjl.tools@gmail.com>2016-04-04 20:45:30 -0700
commitdf41fdf4bd2722ee610ecf31d92527aaad1fab76 (patch)
tree25ea42e489d68bca2b183c951b12a51694e57728 /gas/testsuite
parentdff331be2804c8ef4ad13f9d836d01ce9f83d46c (diff)
downloadgdb-df41fdf4bd2722ee610ecf31d92527aaad1fab76.zip
gdb-df41fdf4bd2722ee610ecf31d92527aaad1fab76.tar.gz
gdb-df41fdf4bd2722ee610ecf31d92527aaad1fab76.tar.bz2
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.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/gas/i386/i386.exp1
-rw-r--r--gas/testsuite/gas/i386/pr19498.d13
-rw-r--r--gas/testsuite/gas/i386/pr19498.s8
3 files changed, 22 insertions, 0 deletions
diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp
index f1e7611..9c4fdea 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 0000000..35e86ca
--- /dev/null
+++ b/gas/testsuite/gas/i386/pr19498.d
@@ -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
diff --git a/gas/testsuite/gas/i386/pr19498.s b/gas/testsuite/gas/i386/pr19498.s
new file mode 100644
index 0000000..0cf4079
--- /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