Debian Codegraph @

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

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2" } */
3
4 /* { dg-final { scan-assembler-times {fcvtl\tv[0-9]+.2d, v[0-9]+.2s} 1 } } */
5 void
6 f (float *__restrict a, double *__restrict b)
7 {
8 b[0] = a[0];
9 b[1] = a[1];
10 }
11
12 /* { dg-final { scan-assembler-times {fcvtl\tv[0-9]+.4s, v[0-9]+.4h} 1 } } */
13 void
14 f1 (_Float16 *__restrict a, float *__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 }