aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2005-05-07 13:30:02 +0000
committerH.J. Lu <hjl.tools@gmail.com>2005-05-07 13:30:02 +0000
commit003519a7c29470959d24bbf5a212d29919c40dc7 (patch)
tree47b5c561960f410738d9b4a2b607bd8a3a77c651 /gas
parent920a34a7b250d714239941480610cc39649968f3 (diff)
downloadgdb-003519a7c29470959d24bbf5a212d29919c40dc7.zip
gdb-003519a7c29470959d24bbf5a212d29919c40dc7.tar.gz
gdb-003519a7c29470959d24bbf5a212d29919c40dc7.tar.bz2
gas/testsuite/
2005-05-07 H.J. Lu <hongjiu.lu@intel.com> PR 843 * gas/i386/i386.exp: Add x86-64-branch. * gas/i386/x86-64-branch.d: New. * gas/i386/x86-64-branch.s: New. opcodes/ 2005-05-07 H.J. Lu <hongjiu.lu@intel.com> PR 843 * i386-dis.c (branch_v_mode): New. (indirEv): Use branch_v_mode instead of v_mode. (OP_E): Handle branch_v_mode.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog8
-rw-r--r--gas/testsuite/gas/i386/i386.exp1
-rw-r--r--gas/testsuite/gas/i386/x86-64-branch.d13
-rw-r--r--gas/testsuite/gas/i386/x86-64-branch.s5
4 files changed, 27 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 1f4b1c9..bcd4da6 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,11 @@
+2005-05-07 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR 843
+ * gas/i386/i386.exp: Add x86-64-branch.
+
+ * gas/i386/x86-64-branch.d: New.
+ * gas/i386/x86-64-branch.s: New.
+
2005-05-06 Jan Beulich <jbeulich@novell.com>
* gas/macros/badarg.s: Add check for bad qualifier specification.
diff --git a/gas/testsuite/gas/i386/i386.exp b/gas/testsuite/gas/i386/i386.exp
index 0922e74..34862a5 100644
--- a/gas/testsuite/gas/i386/i386.exp
+++ b/gas/testsuite/gas/i386/i386.exp
@@ -127,6 +127,7 @@ if [expr ([istarget "i*86-*-*"] || [istarget "x86_64-*-*"]) && [gas_64_check]] t
run_list_test "x86-64-inval" "-al"
run_list_test "x86-64-segment" "-al"
run_list_test "x86-64-inval-seg" "-al"
+ run_dump_test "x86-64-branch"
# For ELF targets verify that @unwind works.
if { ([istarget "*-*-elf*"] || [istarget "*-*-linux*"]
diff --git a/gas/testsuite/gas/i386/x86-64-branch.d b/gas/testsuite/gas/i386/x86-64-branch.d
new file mode 100644
index 0000000..7ddd6fe
--- /dev/null
+++ b/gas/testsuite/gas/i386/x86-64-branch.d
@@ -0,0 +1,13 @@
+#as: -J
+#objdump: -drw
+#name: x86-64 indirect branch
+
+.*: +file format elf64-x86-64
+
+Disassembly of section .text:
+
+0+000 <.text>:
+[ ]*0:[ ]+ff d0[ ]+callq[ ]+\*%rax
+[ ]*2:[ ]+ff d0[ ]+callq[ ]+\*%rax
+[ ]*4:[ ]+ff e0[ ]+jmpq[ ]+\*%rax
+[ ]*6:[ ]+ff e0[ ]+jmpq[ ]+\*%rax
diff --git a/gas/testsuite/gas/i386/x86-64-branch.s b/gas/testsuite/gas/i386/x86-64-branch.s
new file mode 100644
index 0000000..865c475
--- /dev/null
+++ b/gas/testsuite/gas/i386/x86-64-branch.s
@@ -0,0 +1,5 @@
+.text
+ callq *%rax
+ call *%rax
+ jmpq *%rax
+ jmp *%rax