1 /* Test __atomic routines for existence and proper execution on 4 byte
2 values with each valid memory model. */
4 /* { dg-require-effective-target sync_int_long } */
6 extern void abort(void);
16 if (__atomic_load_n (&v, __ATOMIC_RELAXED) != count++)
21 if (__atomic_load_n (&v, __ATOMIC_ACQUIRE) != count++)
26 if (__atomic_load_n (&v, __ATOMIC_CONSUME) != count++)
31 if (__atomic_load_n (&v, __ATOMIC_SEQ_CST) != count++)
36 /* Now test the generic variants. */
38 __atomic_load (&v, &count, __ATOMIC_RELAXED);
44 __atomic_load (&v, &count, __ATOMIC_ACQUIRE);
50 __atomic_load (&v, &count, __ATOMIC_CONSUME);
56 __atomic_load (&v, &count, __ATOMIC_SEQ_CST);