1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00

this can only be fptrunc.

llvm-svn: 32473
This commit is contained in:
Chris Lattner 2006-12-12 05:21:51 +00:00
parent 0b46ffb643
commit 0405309282

View File

@ -790,7 +790,7 @@ SDOperand SelectionDAGLegalize::LegalizeOp(SDOperand Op) {
// Only do this if the target has a native EXTLOAD instruction from
// f32.
TLI.isLoadXLegal(ISD::EXTLOAD, MVT::f32)) {
LLVMC = cast<ConstantFP>(ConstantExpr::getFPCast(LLVMC, Type::FloatTy));
LLVMC = cast<ConstantFP>(ConstantExpr::getFPTrunc(LLVMC, Type::FloatTy));
VT = MVT::f32;
Extend = true;
}