[llvm-commits] CVS: llvm/lib/Target/X86/X86ISelPattern.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun May 8 22:33:34 PDT 2005
Changes in directory llvm/lib/Target/X86:
X86ISelPattern.cpp updated: 1.113 -> 1.114
---
Log message:
Fix FP -> bool casts
---
Diffs of the changes: (+2 -0)
X86ISelPattern.cpp | 2 ++
1 files changed, 2 insertions(+)
Index: llvm/lib/Target/X86/X86ISelPattern.cpp
diff -u llvm/lib/Target/X86/X86ISelPattern.cpp:1.113 llvm/lib/Target/X86/X86ISelPattern.cpp:1.114
--- llvm/lib/Target/X86/X86ISelPattern.cpp:1.113 Sun May 8 22:36:39 2005
+++ llvm/lib/Target/X86/X86ISelPattern.cpp Mon May 9 00:33:18 2005
@@ -1701,6 +1701,7 @@
MVT::ValueType StoreClass = Node->getValueType(0);
if (StoreClass == MVT::i8 || Node->getOpcode() == ISD::FP_TO_UINT)
switch (StoreClass) {
+ case MVT::i1:
case MVT::i8: StoreClass = MVT::i16; break;
case MVT::i16: StoreClass = MVT::i32; break;
case MVT::i32: StoreClass = MVT::i64; break;
@@ -1743,6 +1744,7 @@
addFrameReference(BuildMI(BB, X86::MOV16rm, 4, Result), FrameIdx);
break;
case MVT::i8:
+ case MVT::i1:
addFrameReference(BuildMI(BB, X86::MOV8rm, 4, Result), FrameIdx);
break;
}
More information about the llvm-commits
mailing list