[llvm-branch-commits] [llvm-gcc-branch] r104245 - /llvm-gcc-4.2/branches/Apple/Morbo/gcc/config/rs6000/llvm-rs6000.cpp
Dale Johannesen
dalej at apple.com
Thu May 20 11:07:04 PDT 2010
Author: johannes
Date: Thu May 20 13:07:04 2010
New Revision: 104245
URL: http://llvm.org/viewvc/llvm-project?rev=104245&view=rev
Log:
--- Merging r104187 into '.':
U gcc/config/rs6000/llvm-rs6000.cpp
Modified:
llvm-gcc-4.2/branches/Apple/Morbo/gcc/config/rs6000/llvm-rs6000.cpp
Modified: llvm-gcc-4.2/branches/Apple/Morbo/gcc/config/rs6000/llvm-rs6000.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm-gcc-4.2/branches/Apple/Morbo/gcc/config/rs6000/llvm-rs6000.cpp?rev=104245&r1=104244&r2=104245&view=diff
==============================================================================
--- llvm-gcc-4.2/branches/Apple/Morbo/gcc/config/rs6000/llvm-rs6000.cpp (original)
+++ llvm-gcc-4.2/branches/Apple/Morbo/gcc/config/rs6000/llvm-rs6000.cpp Thu May 20 13:07:04 2010
@@ -99,12 +99,16 @@
switch (FnCode) {
default: break;
case ALTIVEC_BUILTIN_VADDFP:
+ Result = Builder.CreateFAdd(Ops[0], Ops[1], "tmp");
+ return true;
case ALTIVEC_BUILTIN_VADDUBM:
case ALTIVEC_BUILTIN_VADDUHM:
case ALTIVEC_BUILTIN_VADDUWM:
Result = Builder.CreateAdd(Ops[0], Ops[1], "tmp");
return true;
case ALTIVEC_BUILTIN_VSUBFP:
+ Result = Builder.CreateFSub(Ops[0], Ops[1], "tmp");
+ return true;
case ALTIVEC_BUILTIN_VSUBUBM:
case ALTIVEC_BUILTIN_VSUBUHM:
case ALTIVEC_BUILTIN_VSUBUWM:
More information about the llvm-branch-commits
mailing list