1 /* PR54087. Verify __atomic_sub (val) uses __atomic_add (-val) if there is no
3 /* { dg-require-effective-target sync_int_long } */
4 /* { dg-do compile { target { i?86-*-* x86_64-*-* } } } */
5 /* { dg-final { scan-assembler-times "xadd" 2 } } */
12 return __atomic_sub_fetch(&a
, p
, __ATOMIC_SEQ_CST
) == 0;
17 return __atomic_fetch_sub(&a
, p
, __ATOMIC_SEQ_CST
) - p
== 0;