[llvm-commits] [llvm] r47825 - /llvm/trunk/lib/Target/CBackend/CBackend.cpp
Chris Lattner
sabre at nondot.org
Sun Mar 2 00:54:28 PST 2008
Author: lattner
Date: Sun Mar 2 02:54:27 2008
New Revision: 47825
URL: http://llvm.org/viewvc/llvm-project?rev=47825&view=rev
Log:
add support for lvsl, fixing PR1481
Modified:
llvm/trunk/lib/Target/CBackend/CBackend.cpp
Modified: llvm/trunk/lib/Target/CBackend/CBackend.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/CBackend/CBackend.cpp?rev=47825&r1=47824&r2=47825&view=diff
==============================================================================
--- llvm/trunk/lib/Target/CBackend/CBackend.cpp (original)
+++ llvm/trunk/lib/Target/CBackend/CBackend.cpp Sun Mar 2 02:54:27 2008
@@ -2511,6 +2511,7 @@
case Intrinsic::x86_sse_cmp_ps:
case Intrinsic::x86_sse2_cmp_sd:
case Intrinsic::x86_sse2_cmp_pd:
+ case Intrinsic::ppc_altivec_lvsl:
// We directly implement these intrinsics
break;
default:
@@ -2806,6 +2807,14 @@
writeOperand(I.getOperand(2));
Out << ")";
return true;
+ case Intrinsic::ppc_altivec_lvsl:
+ Out << '(';
+ printType(Out, I.getType());
+ Out << ')';
+ Out << "__builtin_altivec_lvsl(0, (void*)";
+ writeOperand(I.getOperand(1));
+ Out << ")";
+ return true;
}
}
More information about the llvm-commits
mailing list