Expand sext_inreg for i1
authorAnton Korobeynikov <asl@math.spbu.ru>
Sat, 18 Jul 2009 12:20:36 +0000 (12:20 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Sat, 18 Jul 2009 12:20:36 +0000 (12:20 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76310 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/SystemZ/SystemZISelLowering.cpp

index 46e0459e4c90dc6aabad9d98aadd0058cebe0311..2365d59d22b4922b719a6456187a838e1e03a221 100644 (file)
@@ -104,6 +104,8 @@ SystemZTargetLowering::SystemZTargetLowering(SystemZTargetMachine &tm) :
   setOperationAction(ISD::SREM,             MVT::i64, Expand);
   setOperationAction(ISD::UREM,             MVT::i64, Expand);
 
+  setOperationAction(ISD::SIGN_EXTEND_INREG, MVT::i1, Expand);
+
   // FIXME: Can we lower these 2 efficiently?
   setOperationAction(ISD::SETCC,            MVT::i32, Expand);
   setOperationAction(ISD::SETCC,            MVT::i64, Expand);