summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGBuiltin.cpp
diff options
context:
space:
mode:
authorChad Rosier <mcrosier@codeaurora.org>2013-12-11 21:03:54 +0000
committerChad Rosier <mcrosier@codeaurora.org>2013-12-11 21:03:54 +0000
commitedd4403510ab0dde87041b36850e30f6f1889fb1 (patch)
treecb357d3b43530d4cf3f2b7743ec81a173a9adee9 /clang/lib/CodeGen/CGBuiltin.cpp
parent6ce4387c5cc2e8a8079f8ca09dc9f7032c8b3557 (diff)
downloadbcm5719-llvm-edd4403510ab0dde87041b36850e30f6f1889fb1.tar.gz
bcm5719-llvm-edd4403510ab0dde87041b36850e30f6f1889fb1.zip
[AArch64] Refactor the NEON scalar floating-point reciprocal step and
floating-point reciprocal square root step LLVM AArch64 intrinsics to use f32/f64 types, rather than their vector equivalents. llvm-svn: 197070
Diffstat (limited to 'clang/lib/CodeGen/CGBuiltin.cpp')
-rw-r--r--clang/lib/CodeGen/CGBuiltin.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index 7cef28cb86d..e64641fc6e1 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -2118,16 +2118,16 @@ static Value *EmitAArch64ScalarBuiltinExpr(CodeGenFunction &CGF,
case AArch64::BI__builtin_neon_vqrdmulhs_s32:
Int = Intrinsic::arm_neon_vqrdmulh;
s = "vqrdmulh"; IntTypes = VectorRet; break;
- // Scalar Floating-point Reciprocal Step and
+ // Scalar Floating-point Reciprocal Step
case AArch64::BI__builtin_neon_vrecpss_f32:
case AArch64::BI__builtin_neon_vrecpsd_f64:
- Int = Intrinsic::arm_neon_vrecps;
- s = "vrecps"; IntTypes = VectorRet; break;
+ Int = Intrinsic::aarch64_neon_vrecps;
+ s = "vrecps"; IntTypes = ScalarRet; break;
// Scalar Floating-point Reciprocal Square Root Step
case AArch64::BI__builtin_neon_vrsqrtss_f32:
case AArch64::BI__builtin_neon_vrsqrtsd_f64:
- Int = Intrinsic::arm_neon_vrsqrts;
- s = "vrsqrts"; IntTypes = VectorRet; break;
+ Int = Intrinsic::aarch64_neon_vrsqrts;
+ s = "vrsqrts"; IntTypes = ScalarRet; break;
// Scalar Signed Integer Convert To Floating-point
case AArch64::BI__builtin_neon_vcvts_f32_s32:
case AArch64::BI__builtin_neon_vcvtd_f64_s64:
OpenPOWER on IntegriCloud