https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64821

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #4)
> I am going to fix this but maybe not until stage 1.
> 
> I think this is enough too:

It is.

A testcase too:
/* { dg-do compile } */
/* { dg-options "-fdump-tree-optimized" } */
#include <arm_neon.h>
/* { dg-final { scan-tree-dump-times "__builtin_aarch64" 0 "optimized" } } */
/* { dg-final { scan-tree-dump-times ".SQRT" 4 "optimized" } } */

float64x1_t f64(float64x1_t a)
{
      return vsqrt_f64 (a);
}

float64x2_t f64q(float64x2_t a)
{
      return vsqrtq_f64 (a);
}

float32x2_t f32(float32x2_t a)
{
      return vsqrt_f32 (a);
}

float32x4_t f32q(float32x4_t a)
{
      return vsqrtq_f32 (a);
}

Reply via email to