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 | 509bd725765602a2c53df11f004fd6889432e385 (patch) | |
tree | 5611abb557086e2f02935f308bfe960bb9d330eb /lib/Target/CellSPU | |
parent | 32631d1a5a18cb997ea7ad4f103938470aecc146 (diff) | |
download | external_llvm-509bd725765602a2c53df11f004fd6889432e385.zip external_llvm-509bd725765602a2c53df11f004fd6889432e385.tar.gz external_llvm-509bd725765602a2c53df11f004fd6889432e385.tar.bz2 |
Set FFLOOR for vectors to expand on CellSPU to keep instruction selection from failing on llvm.floor of a vector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167914 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/CellSPU')
-rw-r--r-- | lib/Target/CellSPU/SPUISelLowering.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Target/CellSPU/SPUISelLowering.cpp b/lib/Target/CellSPU/SPUISelLowering.cpp index 4e9fcd1..31b8733 100644 --- a/lib/Target/CellSPU/SPUISelLowering.cpp +++ b/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 |