| 1 |
// { dg-options "-O -fomit-frame-pointer -fno-optimize-sibling-calls" } |
| 2 |
|
| 3 |
__attribute__((aarch64_vector_pcs)) void ns_callee (); |
| 4 |
__attribute__((aarch64_vector_pcs)) void s_callee () [[arm::streaming]]; |
| 5 |
__attribute__((aarch64_vector_pcs)) void sc_callee () [[arm::streaming_compatible]]; |
| 6 |
|
| 7 |
struct callbacks { |
| 8 |
__attribute__((aarch64_vector_pcs)) void (*ns_ptr) (); |
| 9 |
__attribute__((aarch64_vector_pcs)) void (*s_ptr) () [[arm::streaming]]; |
| 10 |
__attribute__((aarch64_vector_pcs)) void (*sc_ptr) () [[arm::streaming_compatible]]; |
| 11 |
}; |
| 12 |
|
| 13 |
void __attribute__((aarch64_vector_pcs)) |
| 14 |
n_caller (struct callbacks *c) |
| 15 |
{ |
| 16 |
ns_callee (); |
| 17 |
sc_callee (); |
| 18 |
|
| 19 |
c->ns_ptr (); |
| 20 |
c->sc_ptr (); |
| 21 |
} |
| 22 |
|
| 23 |
void __attribute__((aarch64_vector_pcs)) |
| 24 |
s_caller (struct callbacks *c) [[arm::streaming]] |
| 25 |
{ |
| 26 |
s_callee (); |
| 27 |
sc_callee (); |
| 28 |
|
| 29 |
c->s_ptr (); |
| 30 |
c->sc_ptr (); |
| 31 |
} |
| 32 |
|
| 33 |
void __attribute__((aarch64_vector_pcs)) |
| 34 |
sc_caller (struct callbacks *c) [[arm::streaming_compatible]] |
| 35 |
{ |
| 36 |
sc_callee (); |
| 37 |
|
| 38 |
c->sc_ptr (); |
| 39 |
} |
| 40 |
|
| 41 |
// { dg-final { scan-assembler-not {[dpqz][0-9]+,} } } |
| 42 |
// { dg-final { scan-assembler-not {smstart\tsm} } } |
| 43 |
// { dg-final { scan-assembler-not {smstop\tsm} } } |