[llvm-commits] [llvm] r148947 - /llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Chris Lattner
sabre at nondot.org
Wed Jan 25 01:56:23 PST 2012
Author: lattner
Date: Wed Jan 25 03:56:22 2012
New Revision: 148947
URL: http://llvm.org/viewvc/llvm-project?rev=148947&view=rev
Log:
fix a bug I introduced in r148929, this is not a splat!
Thanks to Eli for noticing.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=148947&r1=148946&r2=148947&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Wed Jan 25 03:56:22 2012
@@ -7591,8 +7591,12 @@
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.
More information about the llvm-commits
mailing list