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