[X86] Add OpSize32 to OR32mrLocked instruction to match the normal OR32mr instruction.
authorCraig Topper <craig.topper@gmail.com>
Tue, 5 Jan 2016 07:44:11 +0000 (07:44 +0000)
committerCraig Topper <craig.topper@gmail.com>
Tue, 5 Jan 2016 07:44:11 +0000 (07:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@256817 91177308-0d34-0410-b5e6-96231b3b80d8

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