gcc/testsuite/gcc.target/aarch64/pr113552.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-Ofast -march=armv8-a" } */ |
| 3 | |
| 4 | __attribute__ ((__simd__ ("notinbranch"), const)) |
| 5 | double cos (double); |
| 6 | |
| 7 | void foo (float *a, double *b) |
| 8 | { |
| 9 | for (int i = 0; i < 12; i+=3) |
| 10 | { |
| 11 | b[i] = cos (5.0 * a[i]); |
| 12 | b[i+1] = cos (5.0 * a[i+1]); |
| 13 | b[i+2] = cos (5.0 * a[i+2]); |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | /* { dg-final { scan-assembler-times {bl\t_ZGVnN2v_cos} 6 } } */ |