[AArch64] Use target builtin instead of __builtin_sqrt for vsqrt_f64
authorKyrylo Tkachov <kyrylo.tkachov@arm.com>
Wed, 4 Feb 2015 11:46:07 +0000 (11:46 +0000)
committerKyrylo Tkachov <ktkachov@gcc.gnu.org>
Wed, 4 Feb 2015 11:46:07 +0000 (11:46 +0000)
* config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
* config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
instead of __builtin_sqrt.

From-SVN: r220395

gcc/ChangeLog
gcc/config/aarch64/aarch64-simd-builtins.def
gcc/config/aarch64/arm_neon.h

index e9ffbf9b6f9353b30c1c1bf1ab8ab4901d5f941b..bbf8feb6529a03565df129ae632a1e80df8387ae 100644 (file)
@@ -1,3 +1,9 @@
+2015-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
+
+       * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
+       * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
+       instead of __builtin_sqrt.
+
 2015-02-04  Ilya Enkovich  <ilya.enkovich@intel.com>
 
        * varasm.c (do_assemble_alias): Follow transparent alias
index 2c52b27be7150bc11bd60be2039a68ba419f2b93..dd2bc47ae1e937ea616866956969d29d2bdcb1b2 100644 (file)
@@ -41,7 +41,7 @@
 
   BUILTIN_VDC (COMBINE, combine, 0)
   BUILTIN_VB (BINOP, pmul, 0)
-  BUILTIN_VDQF (UNOP, sqrt, 2)
+  BUILTIN_VDQF_DF (UNOP, sqrt, 2)
   BUILTIN_VD_BHSI (BINOP, addp, 0)
   VAR1 (UNOP, addp, 0, di)
   BUILTIN_VDQ_BHSI (UNOP, clrsb, 2)
index d4ce0b8a02c689cbe0fb1e41607d5b7b9b4d10c2..2525a27b859db48208f439f4d4a7ef710ee4c598 100644 (file)
@@ -21994,7 +21994,7 @@ vsqrtq_f32 (float32x4_t a)
 __extension__ static __inline float64x1_t __attribute__ ((__always_inline__))
 vsqrt_f64 (float64x1_t a)
 {
-  return (float64x1_t) { __builtin_sqrt (a[0]) };
+  return (float64x1_t) { __builtin_aarch64_sqrtdf (a[0]) };
 }
 
 __extension__ static __inline float64x2_t __attribute__ ((__always_inline__))