summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-01-25 09:56:22 +0000
committerChris Lattner <sabre@nondot.org>2012-01-25 09:56:22 +0000
commit33633a90a029ee4eb840f524753f5935a3103cfa (patch)
tree2c68a34d86b672ee23997b02797d686b0552f270
parent3c3feaf40c260fb07eaddbe588e2d91008d5fdf5 (diff)
downloadbcm5719-llvm-33633a90a029ee4eb840f524753f5935a3103cfa.tar.gz
bcm5719-llvm-33633a90a029ee4eb840f524753f5935a3103cfa.zip
fix a bug I introduced in r148929, this is not a splat!
Thanks to Eli for noticing. llvm-svn: 148947
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index 74b02ad3d98..09f20667159 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -7591,8 +7591,12 @@ SDValue X86TargetLowering::LowerUINT_TO_FP_i64(SDValue Op,
Constant *C0 = ConstantVector::get(CV0);
SDValue CPIdx0 = DAG.getConstantPool(C0, getPointerTy(), 16);
- Constant *C1 = ConstantVector::getSplat(2,
+ SmallVector<Constant*,2> CV1;
+ CV1.push_back(
ConstantFP::get(*Context, APFloat(APInt(64, 0x4330000000000000ULL))));
+ CV1.push_back(
+ ConstantFP::get(*Context, APFloat(APInt(64, 0x4530000000000000ULL))));
+ Constant *C1 = ConstantVector::get(CV1);
SDValue CPIdx1 = DAG.getConstantPool(C1, getPointerTy(), 16);
// Load the 64-bit value into an XMM register.
OpenPOWER on IntegriCloud