mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 21:29:20 +00:00
add support for lvsl, fixing PR1481
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47825 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4e22012ea4
commit
ff939213db
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user