[llvm-commits] [llvm-gcc-4.2] r48654 - /llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp
Evan Cheng
evan.cheng at apple.com
Fri Mar 21 12:30:58 PDT 2008
Author: evancheng
Date: Fri Mar 21 14:30:57 2008
New Revision: 48654
URL: http://llvm.org/viewvc/llvm-project?rev=48654&view=rev
Log:
Temporarily back out 48641.
Modified:
llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp
Modified: llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp?rev=48654&r1=48653&r2=48654&view=diff
==============================================================================
--- llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp (original)
+++ llvm-gcc-4.2/trunk/gcc/config/i386/llvm-i386.cpp Fri Mar 21 14:30:57 2008
@@ -397,12 +397,12 @@
return true;
}
case IX86_BUILTIN_LOADQ: {
- PointerType *v4i32Ptr = PointerType::getUnqual(ResultType);
- Ops[0] = Builder.CreateBitCast(Ops[0], v4i32Ptr, "tmp");
+ PointerType *f64Ptr = PointerType::getUnqual(Type::DoubleTy);
+ Value *Zero = ConstantFP::get(Type::DoubleTy, APFloat(0.0));
+ Ops[0] = Builder.CreateBitCast(Ops[0], f64Ptr, "tmp");
Ops[0] = Builder.CreateLoad(Ops[0], "tmp");
- Value *Zero = ConstantInt::get(Type::Int32Ty, 0);
- Result = BuildVector(Zero, Zero, Zero, Zero, NULL);
- Result = BuildVectorShuffle(Result, Ops[0], 4, 5, 2, 3);
+ Result = BuildVector(Ops[0], Zero, NULL);
+ Result = Builder.CreateBitCast(Result, ResultType, "tmp");
return true;
}
case IX86_BUILTIN_LOADHPS: {
More information about the llvm-commits
mailing list