aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Target
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
commit97484795904498acc5f88df23498c65fcf151a7f (patch)
treefeee613095aeff4f36f58f5fc0a861bb60bdb9f1 /lib/Target
parent6c00c6a181934afc8bc23db3033e46a3ff93602b (diff)
downloadexternal_llvm-97484795904498acc5f88df23498c65fcf151a7f.zip
external_llvm-97484795904498acc5f88df23498c65fcf151a7f.tar.gz
external_llvm-97484795904498acc5f88df23498c65fcf151a7f.tar.bz2
fix a bug I introduced in r148929, this is not a splat!
Thanks to Eli for noticing. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148947 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target')
-rw-r--r--lib/Target/X86/X86ISelLowering.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp
index 74b02ad..09f2066 100644
--- a/lib/Target/X86/X86ISelLowering.cpp
+++ b/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.