[X86] Add OpSize32 to OR32mrLocked instruction to match the normal OR32mr instruction.
[oota-llvm.git] / lib / Target / X86 / X86InstrCompiler.td
index a585775f84e176c145d2d5d924e3c629be410aa6..ef3df0bb9a30713a3f65c426e110634005b12f5d 100644 (file)
@@ -555,8 +555,8 @@ let usesCustomInserter = 1, Uses = [EFLAGS] in {
 // TODO: Get this to fold the constant into the instruction.
 let isCodeGenOnly = 1, Defs = [EFLAGS] in
 def OR32mrLocked  : I<0x09, MRMDestMem, (outs), (ins i32mem:$dst, GR32:$zero),
-                      "or{l}\t{$zero, $dst|$dst, $zero}",
-                      [], IIC_ALU_MEM>, Requires<[Not64BitMode]>, LOCK,
+                      "or{l}\t{$zero, $dst|$dst, $zero}", [],
+                      IIC_ALU_MEM>, Requires<[Not64BitMode]>, OpSize32, LOCK,
                     Sched<[WriteALULd, WriteRMW]>;
 
 let hasSideEffects = 1 in