aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-04-24 17:41:04 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-04-24 17:41:04 +0000
commit253036079bf570cff18d8e627c769795e1c6c286 (patch)
tree49db160da99a3e077cf5a387ac2f7647359af258 /gas/testsuite
parentbd288ea21b2dbb853d166fddd980bf9d03bdb009 (diff)
downloadgdb-253036079bf570cff18d8e627c769795e1c6c286.zip
gdb-253036079bf570cff18d8e627c769795e1c6c286.tar.gz
gdb-253036079bf570cff18d8e627c769795e1c6c286.tar.bz2
Restore "call|jmp [xtrn]" in x86 assembler.
gas/ 2010-04-24 H.J. Lu <hongjiu.lu@intel.com> PR gas/11535 * config/tc-i386-intel.c (intel_state): Add is_indirect. (i386_intel_operand): Initialize intel_state.is_indirect. Check intel_state.is_indirect for "call|jmp [symbol]". gas/testsuite/ 2010-04-24 H.J. Lu <hongjiu.lu@intel.com> PR gas/11535 * gas/i386/intelok.s: Add tests for "call|jmp [xtrn]". * gas/i386/intelok.d: Updated.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog6
-rw-r--r--gas/testsuite/gas/i386/intelok.d2
-rw-r--r--gas/testsuite/gas/i386/intelok.s2
3 files changed, 10 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 111a118..8e3df9e 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,9 @@
+2010-04-24 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR gas/11535
+ * gas/i386/intelok.s: Add tests for "call|jmp [xtrn]".
+ * gas/i386/intelok.d: Updated.
+
2010-04-21 Joseph Myers <joseph@codesourcery.com>
* gas/tic6x/insns-c674x.s, gas/tic6x/insns-c674x.d: Also test
diff --git a/gas/testsuite/gas/i386/intelok.d b/gas/testsuite/gas/i386/intelok.d
index 7a958d5..bad81e4 100644
--- a/gas/testsuite/gas/i386/intelok.d
+++ b/gas/testsuite/gas/i386/intelok.d
@@ -204,4 +204,6 @@ Disassembly of section .text:
[ ]*[0-9a-f]+: ea 03 00 00 00 05 00[ ]+l?jmp[ ]+0x5[,:]0x3
[ ]*[0-9a-f]+: ff 15 00 00 00 00[ ]+call[ ]+DWORD PTR (ds:)?(0x)?0
[ ]*[0-9a-f]+: 66 ff 25 00 00 00 00[ ]+jmp[ ]+WORD PTR (ds:)?(0x)?0
+[ ]*[0-9a-f]+: ff 15 00 00 00 00[ ]+call[ ]+DWORD PTR (ds:)?(0x)?0
+[ ]*[0-9a-f]+: ff 25 00 00 00 00[ ]+jmp[ ]+DWORD PTR (ds:)?(0x)?0
#pass
diff --git a/gas/testsuite/gas/i386/intelok.s b/gas/testsuite/gas/i386/intelok.s
index 6883301..eae9c2d 100644
--- a/gas/testsuite/gas/i386/intelok.s
+++ b/gas/testsuite/gas/i386/intelok.s
@@ -215,3 +215,5 @@ start:
jmp 5:[3]
call dword ptr xtrn
jmp word ptr xtrn
+ call [xtrn]
+ jmp [xtrn]