aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2013-03-27 18:49:10 +0000
committerH.J. Lu <hjl.tools@gmail.com>2013-03-27 18:49:10 +0000
commit55cf16e10ce64a8696137d2ce50092b4559561e7 (patch)
treea001d19198e7351572910eef6b15ef0b97b33c73 /gas
parentec21308c432bb90610474eedeb47b2335b12a735 (diff)
downloadgdb-55cf16e10ce64a8696137d2ce50092b4559561e7.zip
gdb-55cf16e10ce64a8696137d2ce50092b4559561e7.tar.gz
gdb-55cf16e10ce64a8696137d2ce50092b4559561e7.tar.bz2
Properly check address mode for SIB
gas/testsuite/ * gas/i386/addr32.s: Add an SIB test. * gas/i386/addr32.d: Updated. opcodes/ * i386-dis.c (get_sib): Add the sizeflag argument. Properly check address mode. (print_insn): Pass sizeflag to get_sib.
Diffstat (limited to 'gas')
-rw-r--r--gas/testsuite/ChangeLog5
-rw-r--r--gas/testsuite/gas/i386/addr32.d1
-rw-r--r--gas/testsuite/gas/i386/addr32.s1
3 files changed, 7 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index 58fb22f..8206282 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2013-03-27 H.J. Lu <hongjiu.lu@intel.com>
+
+ * gas/i386/addr32.s: Add an SIB test.
+ * gas/i386/addr32.d: Updated.
+
2013-03-27 Alexis Deruelle <alexis.deruelle@gmail.com>
PR binutils/15068
diff --git a/gas/testsuite/gas/i386/addr32.d b/gas/testsuite/gas/i386/addr32.d
index 5866a30..8553fc3 100644
--- a/gas/testsuite/gas/i386/addr32.d
+++ b/gas/testsuite/gas/i386/addr32.d
@@ -12,4 +12,5 @@ Disassembly of section .text:
[ ]*13:[ ]+67 a2 98 08 60 00[ ]+addr32[ ]+mov[ ]+%al,0x600898
[ ]*19:[ ]+67 a3 98 08 60 00[ ]+addr32[ ]+mov[ ]+%ax,0x600898
[ ]*1f:[ ]+67 66 a3 98 08 60 00[ ]+addr32[ ]+mov[ ]+%eax,0x600898
+[ ]*26:[ ]+67 66 c7 04 24 01 00 00 00[ ]+movl[ ]+\$0x1,\(%esp\)
#pass
diff --git a/gas/testsuite/gas/i386/addr32.s b/gas/testsuite/gas/i386/addr32.s
index 3dab339..b899ebd 100644
--- a/gas/testsuite/gas/i386/addr32.s
+++ b/gas/testsuite/gas/i386/addr32.s
@@ -6,3 +6,4 @@
addr32 mov %al,0x600898
addr32 mov %ax,0x600898
addr32 mov %eax,0x600898
+ addr32 movl $0x1,(%esp)