Set FFLOOR for vectors to expand on CellSPU to keep instruction selection from failin...
authorCraig Topper <craig.topper@gmail.com>
Wed, 14 Nov 2012 05:56:30 +0000 (05:56 +0000)
committerCraig Topper <craig.topper@gmail.com>
Wed, 14 Nov 2012 05:56:30 +0000 (05:56 +0000)
llvm-svn: 167914

llvm/lib/Target/CellSPU/SPUISelLowering.cpp

index 4e9fcd1..31b8733 100644 (file)
@@ -431,12 +431,13 @@ SPUTargetLowering::SPUTargetLowering(SPUTargetMachine &TM)
     setOperationAction(ISD::SREM,    VT, Expand);
     setOperationAction(ISD::UDIV,    VT, Expand);
     setOperationAction(ISD::UREM,    VT, Expand);
+    setOperationAction(ISD::FFLOOR,  VT, Expand);
 
     // Expand all trunc stores
     for (unsigned j = (unsigned)MVT::FIRST_VECTOR_VALUETYPE;
          j <= (unsigned)MVT::LAST_VECTOR_VALUETYPE; ++j) {
       MVT::SimpleValueType TargetVT = (MVT::SimpleValueType)j;
-    setTruncStoreAction(VT, TargetVT, Expand);
+      setTruncStoreAction(VT, TargetVT, Expand);
     }
 
     // Custom lower build_vector, constant pool spills, insert and