mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +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:
@ -2511,6 +2511,7 @@ void CWriter::lowerIntrinsics(Function &F) {
|
|||||||
case Intrinsic::x86_sse_cmp_ps:
|
case Intrinsic::x86_sse_cmp_ps:
|
||||||
case Intrinsic::x86_sse2_cmp_sd:
|
case Intrinsic::x86_sse2_cmp_sd:
|
||||||
case Intrinsic::x86_sse2_cmp_pd:
|
case Intrinsic::x86_sse2_cmp_pd:
|
||||||
|
case Intrinsic::ppc_altivec_lvsl:
|
||||||
// We directly implement these intrinsics
|
// We directly implement these intrinsics
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
@ -2806,6 +2807,14 @@ bool CWriter::visitBuiltinCall(CallInst &I, Intrinsic::ID ID,
|
|||||||
writeOperand(I.getOperand(2));
|
writeOperand(I.getOperand(2));
|
||||||
Out << ")";
|
Out << ")";
|
||||||
return true;
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user