Translate NEON vmovn builtin to a vector truncation instead of using an llvm

intrinsic.

llvm-svn: 112504
This commit is contained in:
Bob Wilson 2010-08-30 19:57:13 +00:00
parent fef37287a8
commit b9225f7f85
1 changed files with 1 additions and 2 deletions

View File

@ -1420,8 +1420,7 @@ Value *CodeGenFunction::EmitARMBuiltinExpr(unsigned BuiltinID,
return Builder.CreateZExt(Ops[0], Ty, "vmovl");
return Builder.CreateSExt(Ops[0], Ty, "vmovl");
case ARM::BI__builtin_neon_vmovn_v:
return EmitNeonCall(CGM.getIntrinsic(Intrinsic::arm_neon_vmovn, &Ty, 1),
Ops, "vmovn");
return Builder.CreateTrunc(Ops[0], Ty, "vmovn");
case ARM::BI__builtin_neon_vmull_lane_v:
splat = true;
case ARM::BI__builtin_neon_vmull_v: