| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-mhle" } */ |
| 3 |
/* { dg-final { scan-assembler "lock;?\[ \n\t\]+\(xrelease\|\.byte\[ \t\]+0xf3\)\[ \t\n\]+xor" } } */ |
| 4 |
|
| 5 |
void |
| 6 |
hle_xor (int *p, int v) |
| 7 |
{ |
| 8 |
__atomic_fetch_xor (p, v, __ATOMIC_RELEASE | __ATOMIC_HLE_RELEASE); |
| 9 |
} |