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