r197070 - [AArch64] Refactor the NEON scalar floating-point reciprocal step and

Chad Rosier mcrosier at codeaurora.org
Wed Dec 11 13:03:54 PST 2013


Author: mcrosier
Date: Wed Dec 11 15:03:54 2013
New Revision: 197070

URL: http://llvm.org/viewvc/llvm-project?rev=197070&view=rev
Log:
[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.

Modified:
    cfe/trunk/lib/CodeGen/CGBuiltin.cpp

Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBuiltin.cpp?rev=197070&r1=197069&r2=197070&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Wed Dec 11 15:03:54 2013
@@ -2118,16 +2118,16 @@ static Value *EmitAArch64ScalarBuiltinEx
   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:





More information about the cfe-commits mailing list