x86: consolidate Disp<NN> handling a little
[deliverable/binutils-gdb.git] / opcodes / i386-gen.c
index b853e425e600ad432e65903ad728dc5cb08b84a6..09fc5f8b827a0ed041e15c37e945453bc64f62f1 100644 (file)
@@ -1236,7 +1236,8 @@ process_i386_operand_type (FILE *table, char *op, enum stage stage,
          if (!active_cpu_flags.bitfield.cpu64
              && !active_cpu_flags.bitfield.cpumpx)
            set_bitfield("Disp16", types, 1, ARRAY_SIZE (types), lineno);
-         set_bitfield("Disp32", types, 1, ARRAY_SIZE (types), lineno);
+         if (!active_cpu_flags.bitfield.cpu64)
+           set_bitfield("Disp32", types, 1, ARRAY_SIZE (types), lineno);
          if (!active_cpu_flags.bitfield.cpuno64)
            set_bitfield("Disp32S", types, 1, ARRAY_SIZE (types), lineno);
        }
This page took 0.023114 seconds and 4 git commands to generate.