Fix CodeGen/Generic/2006-04-28-Sign-extend-bool.ll
authorChris Lattner <sabre@nondot.org>
Fri, 28 Apr 2006 21:56:10 +0000 (21:56 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 28 Apr 2006 21:56:10 +0000 (21:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28017 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp

index fac2806c1208d25429e7160e9d5a06a01ba0fa5e..2e8ae80bddc49369ae8f5ee6388315a3a2543933 100644 (file)
@@ -112,6 +112,10 @@ PPCTargetLowering::PPCTargetLowering(TargetMachine &TM)
   // PowerPC does not have truncstore for i1.
   setOperationAction(ISD::TRUNCSTORE, MVT::i1, Promote);
 
+  // We cannot sextinreg(i1).  Expand to shifts.
+  setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i1, Expand);
+  
+  
   // Support label based line numbers.
   setOperationAction(ISD::LOCATION, MVT::Other, Expand);
   setOperationAction(ISD::DEBUG_LOC, MVT::Other, Expand);