| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2" } */ |
| 3 |
/* { dg-final { check-function-bodies "**" "" "" } } */ |
| 4 |
|
| 5 |
void bar (void); |
| 6 |
|
| 7 |
/* Extern call may change enabled HW features. */ |
| 8 |
|
| 9 |
/* |
| 10 |
** foo: |
| 11 |
** ... |
| 12 |
** mov x16, 1 |
| 13 |
** ... |
| 14 |
** hint 40 // chkfeat x16 |
| 15 |
** ... |
| 16 |
** bl bar |
| 17 |
** ... |
| 18 |
** mov x16, 1 |
| 19 |
** ... |
| 20 |
** hint 40 // chkfeat x16 |
| 21 |
** ... |
| 22 |
*/ |
| 23 |
unsigned long long |
| 24 |
foo (void) |
| 25 |
{ |
| 26 |
unsigned long long a = __builtin_aarch64_chkfeat (1); |
| 27 |
bar (); |
| 28 |
unsigned long long b = __builtin_aarch64_chkfeat (1); |
| 29 |
return a + b; |
| 30 |
} |