r196966 - [AArch64] Overload NEON signed/unsigned integer convert to floating-point

Chad Rosier mcrosier at codeaurora.org
Tue Dec 10 13:34:17 PST 2013


Author: mcrosier
Date: Tue Dec 10 15:34:17 2013
New Revision: 196966

URL: http://llvm.org/viewvc/llvm-project?rev=196966&view=rev
Log:
[AArch64] Overload NEON signed/unsigned integer convert to floating-point
LLVM AArch64 intrinsics.

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=196966&r1=196965&r2=196966&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGBuiltin.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBuiltin.cpp Tue Dec 10 15:34:17 2013
@@ -2129,18 +2129,14 @@ static Value *EmitAArch64ScalarBuiltinEx
     s = "vrsqrts"; IntTypes = VectorRet; break;
   // Scalar Signed Integer Convert To Floating-point
   case AArch64::BI__builtin_neon_vcvts_f32_s32:
-    Int = Intrinsic::aarch64_neon_vcvtf32_s32,
-    s = "vcvtf"; break;
   case AArch64::BI__builtin_neon_vcvtd_f64_s64:
-    Int = Intrinsic::aarch64_neon_vcvtf64_s64,
-    s = "vcvtf"; break;
+    Int = Intrinsic::aarch64_neon_vcvtint2fps;
+    s = "vcvtf"; IntTypes = ScalarRet | VectorGetArg0; break;
   // Scalar Unsigned Integer Convert To Floating-point
   case AArch64::BI__builtin_neon_vcvts_f32_u32:
-    Int = Intrinsic::aarch64_neon_vcvtf32_u32,
-    s = "vcvtf"; break;
   case AArch64::BI__builtin_neon_vcvtd_f64_u64:
-    Int = Intrinsic::aarch64_neon_vcvtf64_u64,
-    s = "vcvtf"; break;
+    Int = Intrinsic::aarch64_neon_vcvtint2fpu;
+    s = "vcvtf"; IntTypes = ScalarRet | VectorGetArg0; break;
   // Scalar Floating-point Converts
   case AArch64::BI__builtin_neon_vcvtxd_f32_f64:
     Int = Intrinsic::aarch64_neon_fcvtxn;





More information about the cfe-commits mailing list