Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/sve/unpack_fcvt_unsigned_1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-vectorize --param aarch64-vect-compare-costs=0" } */
3
4 #include <stdint.h>
5
6 void __attribute__ ((noinline, noclone))
7 unpack_double_int_plus9 (double *d, uint32_t *s, int size)
8 {
9 for (int i = 0; i < size; i++)
10 d[i] = (double) (s[i] + 9);
11 }
12
13 /* { dg-final { scan-assembler-times {\tzip1\tz[0-9]+\.s, z[0-9]+\.s, z[0-9]+\.s\n} 1 } } */
14 /* { dg-final { scan-assembler-times {\tzip2\tz[0-9]+\.s, z[0-9]+\.s, z[0-9]+\.s\n} 1 } } */
15 /* { dg-final { scan-assembler-times {\tucvtf\tz[0-9]+\.d, p[0-7]/m, z[0-9]+\.s\n} 2 } } */