Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/vect-simd-clone-4.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-std=c99" } */
3 /* { dg-additional-options "-O3 -march=armv8-a" } */
4
5 #pragma GCC target ("+sve")
6
7 extern char __attribute__ ((simd, const)) fn3 (short);
8 void test_fn3 (float *a, float *b, double *c, int n)
9 {
10 for (int i = 0; i < n; ++i)
11 a[i] = fn3 (c[i]);
12 }
13
14 /* { dg-final { scan-assembler {\s+_ZGVsMxv_fn3\n} } } */
15