aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2010-08-18 19:36:41 +0000
committerH.J. Lu <hjl.tools@gmail.com>2010-08-18 19:36:41 +0000
commit9f2670f27b3d38d9faba9388a5fe6ccafaae9864 (patch)
tree6561771d8b6f2198e865ef8e0376c07932772b60 /gas
parentf3574227a8f3cf6696a452bce6e628a0b014f21f (diff)
downloadgdb-9f2670f27b3d38d9faba9388a5fe6ccafaae9864.zip
gdb-9f2670f27b3d38d9faba9388a5fe6ccafaae9864.tar.gz
gdb-9f2670f27b3d38d9faba9388a5fe6ccafaae9864.tar.bz2
Check i.imm_operands VEXXDS.
2010-08-18 H.J. Lu <hongjiu.lu@intel.com> * config/tc-i386.c (build_modrm_byte): Check i.imm_operands instead of VEXXDS.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-i386.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 2777273..e18d5ac 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-18 H.J. Lu <hongjiu.lu@intel.com>
+
+ * config/tc-i386.c (build_modrm_byte): Check i.imm_operands
+ instead of VEXXDS.
+
2010-08-18 Alan Modra <amodra@gmail.com>
* macro.c (sub_actual): Add back ampersand suffix when no
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c
index 0e36a3e2..74e8b37 100644
--- a/gas/config/tc-i386.c
+++ b/gas/config/tc-i386.c
@@ -5264,15 +5264,15 @@ build_modrm_byte (void)
&& i.imm_operands == 1
&& (i.types[0].bitfield.imm8
|| i.types[i.operands - 1].bitfield.imm8)));
- if (i.tm.opcode_modifier.vexvvvv == VEXXDS)
+ if (i.imm_operands == 2)
+ source = 2;
+ else
{
if (i.types[0].bitfield.imm8)
source = 1;
else
source = 0;
}
- else
- source = 2;
break;
case 5:
break;