(root)/
gcc-13.2.0/
gcc/
testsuite/
gcc.target/
aarch64/
simd/
vfma_f64.c
       1  /* Test the vfma_f64 AArch64 SIMD intrinsic.  */
       2  
       3  /* { dg-do run } */
       4  /* { dg-options "-save-temps -O3" } */
       5  
       6  #include "arm_neon.h"
       7  
       8  #define EPS 1.0e-15
       9  
      10  extern void abort (void);
      11  
      12  float64_t __attribute__((noipa))
      13  test_vfma (float64x1_t arg1, float64x1_t arg2, float64x1_t arg3)
      14  {
      15    return vget_lane_f64 (vfma_f64 (arg1, arg2, arg3), 0);
      16  }
      17  
      18  int
      19  main (void)
      20  {
      21    float64_t expected;
      22    float64_t actual;
      23  
      24    expected = 0.6280448184360076;
      25    actual = test_vfma (vcreate_f64 (0x3fe3955382d35b0eULL),
      26  		      vcreate_f64 (0x3fa88480812d6670ULL),
      27  		      vcreate_f64 (0x3fd5791ae2a92572ULL));
      28  
      29    if (__builtin_fabs (expected - actual) > EPS)
      30      abort ();
      31  
      32    return 0;
      33  }
      34  
      35  /* { dg-final { scan-assembler-times "fmadd\[ \t\]+\[dD\]\[0-9\]+, ?\[dD\]\[0-9\]+, ?\[dD\]\[0-9\]+, ?\[dD\]\[0-9\]+\n" 1 } } */