]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gas/config/tc-i386.c
x86: Add SwapSources
[thirdparty/binutils-gdb.git] / gas / config / tc-i386.c
index 46823e24fc438bbfa36d5883603641f3e10b98d1..2e0eb24753595f516e120810fd559af4b3a9f692 100644 (file)
@@ -7884,10 +7884,8 @@ build_modrm_byte (void)
              i386_operand_type op;
              unsigned int vvvv;
 
-             /* Check register-only source operand when two source
-                operands are swapped.  */
-             if (!i.tm.operand_types[source].bitfield.baseindex
-                 && i.tm.operand_types[dest].bitfield.baseindex)
+             /* Swap two source operands if needed.  */
+             if (i.tm.opcode_modifier.swapsources)
                {
                  vvvv = source;
                  source = dest;