Debian Codegraph @

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

raw
1 /* { dg-do run } */
2 /* { dg-options "-save-temps -O3" } */
3
4 #include "arm_neon.h"
5
6 extern void abort ();
7
8 int
9 main()
10 {
11 volatile float64x1_t a = {0.5};
12 int64x1_t b1 = vcvtp_s64_f64 (a);
13
14 if (b1[0] != 1)
15 abort ();
16
17 volatile float64x1_t a2 = {-0.5};
18 int64x1_t b2 = vcvtp_s64_f64 (a2);
19
20 if (b2[0] != 0)
21 abort ();
22
23 return 0;
24 }
25 /* { dg-final { scan-assembler "fcvtps\[ \t\]+\[xX\]\[0-9\]+, ?\[dD\]\[0-9\]+\n" } } */