diff options
author | Craig Topper <craig.topper@gmail.com> | 2012-11-14 05:56:30 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2012-11-14 05:56:30 +0000 |
commit | 54c45ab570f4291e4c8b9001d87eb2817baf5811 (patch) | |
tree | a4f34eb2ef72a18d6db74631fc7a64c29c62e9d5 /llvm/lib | |
parent | 04a5cc39f48bfae14d8dbb388a09b84baa64fadf (diff) | |
download | bcm5719-llvm-54c45ab570f4291e4c8b9001d87eb2817baf5811.tar.gz bcm5719-llvm-54c45ab570f4291e4c8b9001d87eb2817baf5811.zip |
Set FFLOOR for vectors to expand on CellSPU to keep instruction selection from failing on llvm.floor of a vector.
llvm-svn: 167914
Diffstat (limited to 'llvm/lib')
-rw-r--r-- | llvm/lib/Target/CellSPU/SPUISelLowering.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUISelLowering.cpp b/llvm/lib/Target/CellSPU/SPUISelLowering.cpp index 4e9fcd1bc76..31b87331a96 100644 --- a/llvm/lib/Target/CellSPU/SPUISelLowering.cpp +++ b/llvm/lib/Target/CellSPU/SPUISelLowering.cpp @@ -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 |