PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / hle-or-rel-1.c
blob939697a8562789fe773b679c93a5950079ba378d
1 /* { dg-do compile } */
2 /* { dg-options "-mhle" } */
3 /* { dg-final { scan-assembler "lock;?\[ \n\t\]+\(xrelease\|\.byte\[ \t\]+0xf3\)\[ \t\n\]+or" } } */
5 void
6 hle_xor (int *p, int v)
8 __atomic_fetch_or (p, v, __ATOMIC_RELEASE | __ATOMIC_HLE_RELEASE);