From 151ac6e27749b947dda9f9648b7016232106bec9 Mon Sep 17 00:00:00 2001 From: Kyrylo Tkachov Date: Wed, 4 Feb 2015 11:46:07 +0000 Subject: [PATCH] [AArch64] Use target builtin instead of __builtin_sqrt for vsqrt_f64 * 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 | 6 ++++++ gcc/config/aarch64/aarch64-simd-builtins.def | 2 +- gcc/config/aarch64/arm_neon.h | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index e9ffbf9b6f9..bbf8feb6529 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-02-04 Kyrylo Tkachov + + * 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 * varasm.c (do_assemble_alias): Follow transparent alias diff --git a/gcc/config/aarch64/aarch64-simd-builtins.def b/gcc/config/aarch64/aarch64-simd-builtins.def index 2c52b27be71..dd2bc47ae1e 100644 --- a/gcc/config/aarch64/aarch64-simd-builtins.def +++ b/gcc/config/aarch64/aarch64-simd-builtins.def @@ -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) diff --git a/gcc/config/aarch64/arm_neon.h b/gcc/config/aarch64/arm_neon.h index d4ce0b8a02c..2525a27b859 100644 --- a/gcc/config/aarch64/arm_neon.h +++ b/gcc/config/aarch64/arm_neon.h @@ -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__)) -- 2.30.2