1 /* { dg-do compile } */ 2 /* { dg-options "-march=x86-64 -mhle" } */ 3 /* { dg-final { scan-assembler "lock;?\[ \n\t\]+\(xacquire\|\.byte\[ \t\]+0xf2\)\[ \t\n\]+xadd" } } */ 4 5 int hle_xadd(int * p,int v)6hle_xadd (int *p, int v) 7 { 8 return __atomic_fetch_add (p, v, __ATOMIC_ACQUIRE | __ATOMIC_HLE_ACQUIRE); 9 } 10