gcc/testsuite/gcc.target/aarch64/simd_pcs_attribute.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-Ofast" } */ |
| 3 | |
| 4 | __attribute__ ((__simd__ ("notinbranch"))) |
| 5 | __attribute__ ((__nothrow__ , __leaf__ , __const__)) |
| 6 | extern double log (double __x); |
| 7 | |
| 8 | void foo(double *f, int n) |
| 9 | { |
| 10 | int i; |
| 11 | for (i = 0; i < n; i++) |
| 12 | f[i] = log(f[i]); |
| 13 | } |
| 14 | |
| 15 | /* { dg-final { scan-assembler-not {\.variant_pcs\tlog} } } */ |
| 16 | /* { dg-final { scan-assembler-times {\.variant_pcs\t_ZGVnN2v_log} 1 } } */ |