[llvm-commits] CVS: llvm/lib/Target/X86/X86InstrInfo.td

Chris Lattner sabre at nondot.org
Wed Jan 24 10:31:16 PST 2007



Changes in directory llvm/lib/Target/X86:

X86InstrInfo.td updated: 1.297 -> 1.298
---
Log message:

Fix a misencoding of CBW and CWD.  This fixes PR1030: http://llvm.org/PR1030 .


---
Diffs of the changes:  (+2 -2)

 X86InstrInfo.td |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)


Index: llvm/lib/Target/X86/X86InstrInfo.td
diff -u llvm/lib/Target/X86/X86InstrInfo.td:1.297 llvm/lib/Target/X86/X86InstrInfo.td:1.298
--- llvm/lib/Target/X86/X86InstrInfo.td:1.297	Tue Dec  5 13:50:18 2006
+++ llvm/lib/Target/X86/X86InstrInfo.td	Wed Jan 24 12:31:00 2007
@@ -2394,12 +2394,12 @@
                    [(set GR32:$dst, (zextloadi32i16 addr:$src))]>, TB;
 
 def CBW : I<0x98, RawFrm, (ops),
-            "{cbtw|cbw}", []>, Imp<[AL],[AX]>;   // AX = signext(AL)
+            "{cbtw|cbw}", []>, Imp<[AL],[AX]>, OpSize;   // AX = signext(AL)
 def CWDE : I<0x98, RawFrm, (ops),
             "{cwtl|cwde}", []>, Imp<[AX],[EAX]>;   // EAX = signext(AX)
 
 def CWD : I<0x99, RawFrm, (ops),
-            "{cwtd|cwd}", []>, Imp<[AX],[AX,DX]>;   // DX:AX = signext(AX)
+            "{cwtd|cwd}", []>, Imp<[AX],[AX,DX]>, OpSize; // DX:AX = signext(AX)
 def CDQ : I<0x99, RawFrm, (ops),
             "{cltd|cdq}", []>, Imp<[EAX],[EAX,EDX]>; // EDX:EAX = signext(EAX)
           






More information about the llvm-commits mailing list