1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2025-01-31 20:51:52 +01:00

Set FFLOOR for vectors to expand on CellSPU to keep instruction selection from failing on llvm.floor of a vector.

llvm-svn: 167914
This commit is contained in:
Craig Topper 2012-11-14 05:56:30 +00:00
parent 1a69f14c7b
commit 7fbb01652d

View 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