Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/trunc-vec.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 /* { dg-final { scan-assembler-times {fcvtn\tv[0-9]+.2s, v[0-9]+.2d} 1 } } */
5 void
6 f (double *__restrict a, float *__restrict b)
7 {
8 b[0] = a[0];
9 b[1] = a[1];
10 }
11
12 /* { dg-final { scan-assembler-times {fcvtn\tv[0-9]+.4h, v[0-9]+.4s} 1 } } */
13 void
14 f1 (float *__restrict a, _Float16 *__restrict b)
15 {
16
17 b[0] = a[0];
18 b[1] = a[1];
19 b[2] = a[2];
20 b[3] = a[3];
21 }