OSDN Git Service
(root)
/
android-x86
/
external-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e22012
)
add support for lvsl, fixing PR1481
author
Chris Lattner
<sabre@nondot.org>
Sun, 2 Mar 2008 08:54:27 +0000
(08:54 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Sun, 2 Mar 2008 08:54:27 +0000
(08:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47825
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/CBackend/CBackend.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/CBackend/CBackend.cpp
b/lib/Target/CBackend/CBackend.cpp
index
f3f7485
..
946a283
100644
(file)
--- a/
lib/Target/CBackend/CBackend.cpp
+++ b/
lib/Target/CBackend/CBackend.cpp
@@
-2511,6
+2511,7
@@
void CWriter::lowerIntrinsics(Function &F) {
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
@@
bool CWriter::visitBuiltinCall(CallInst &I, Intrinsic::ID ID,
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;
}
}