Fix an obvious bug. No test case since LEA16r is not being used.
authorEvan Cheng <evan.cheng@apple.com>
Sat, 12 Dec 2009 18:51:56 +0000 (18:51 +0000)
committerEvan Cheng <evan.cheng@apple.com>
Sat, 12 Dec 2009 18:51:56 +0000 (18:51 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91219 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/X86/X86InstrInfo.td

index 90ef1f4f1f05911dfac92c4a300635648c242007..f4a201c4b08e1a2d4171f2a9ec1e740c460ed3fb 100644 (file)
@@ -816,7 +816,7 @@ def BSR32rm  : I<0xBD, MRMSrcMem, (outs GR32:$dst), (ins i32mem:$src),
 
 let neverHasSideEffects = 1 in
 def LEA16r   : I<0x8D, MRMSrcMem,
-                 (outs GR16:$dst), (ins i32mem:$src),
+                 (outs GR16:$dst), (ins lea32mem:$src),
                  "lea{w}\t{$src|$dst}, {$dst|$src}", []>, OpSize;
 let isReMaterializable = 1 in
 def LEA32r   : I<0x8D, MRMSrcMem,