Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/simd/vsqrt_f64_1.c

raw
1 /* Test the vsqrt_f64 AArch64 SIMD intrinsic. */
2
3 /* { dg-do run } */
4 /* { dg-options "-save-temps -O3" } */
5
6 #include "arm_neon.h"
7
8 extern void abort (void);
9
10
11 int
12 main (void)
13 {
14 volatile float64x1_t in = vcreate_f64(0x3febd3e560634d7bULL);
15 float64x1_t result = vsqrt_f64 (in);
16 float64_t expected = 0.9325321502142351;
17
18 if (result[0] != expected)
19 abort ();
20
21 return 0;
22 }
23
24 /* { dg-final { scan-assembler "fsqrt\[ \t\]+\[dD\]\[0-9\]+, \[dD\]\[0-9\]+\n" } } */