]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2007-10-05 H.J. Lu <hongjiu.lu@intel.com>
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 5 Oct 2007 17:50:47 +0000 (17:50 +0000)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 5 Oct 2007 17:50:47 +0000 (17:50 +0000)
* config/tc-i386.c (build_modrm_byte): Check the first 2 8bit
immediate operands directly for instructions with 4 operands.

gas/ChangeLog
gas/config/tc-i386.c

index 1b2e47b6a17478ebcb6cf2d3a0996fbfec46d976..b3f610e8598180b4554c73a8f2bffbc3699f883f 100644 (file)
@@ -1,3 +1,8 @@
+2007-10-05  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/tc-i386.c (build_modrm_byte): Check the first 2 8bit
+       immediate operands directly for instructions with 4 operands.
+
 2007-10-04  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR gas/5109
index 56bf31f69c14a7e9ba9052b12afe3bd5b6be756e..a1f60edc9abbbda1bc546baac9b897d24d79b1ef 100644 (file)
@@ -4421,11 +4421,12 @@ build_modrm_byte (void)
            source = 0;
          break;
        case 4:
-         /* When there are 4 operands, the first two must be immediate
-            operands. The source operand will be the 3rd one.  */
+         /* When there are 4 operands, the first two must be 8bit
+            immediate operands. The source operand will be the 3rd
+            one.  */
          assert (i.imm_operands == 2
-                 && operand_type_check (i.types[0], imm)
-                 && operand_type_check (i.types[1], imm));
+                 && i.types[0].bitfield.imm8
+                 && i.types[1].bitfield.imm8);
          source = 2;
          break;
        default: