| 1 |
/* { dg-options "-O" } */ |
| 2 |
|
| 3 |
#include <stdint.h> |
| 4 |
#include <arm_acle.h> |
| 5 |
|
| 6 |
void f(); |
| 7 |
void g() |
| 8 |
{ |
| 9 |
int64_t x = 0; |
| 10 |
__arm_wsr64("tpidr_el0", x); |
| 11 |
f(); |
| 12 |
__arm_wsr64("tpidr_el0", x); |
| 13 |
} |
| 14 |
|
| 15 |
/* { dg-final { scan-assembler-times {\tmsr\t[^,]+, xzr\n} 2 } } */ |