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 /* Test the execution of the __atomic_store_n builtin for an int. */
8 extern void abort(void);
17 __atomic_store_n (&v, count + 1, __ATOMIC_RELAXED);
21 __atomic_store_n (&v, count + 1, __ATOMIC_RELEASE);
25 __atomic_store_n (&v, count + 1, __ATOMIC_SEQ_CST);
29 /* Now test the generic variant. */
32 __atomic_store (&v, &count, __ATOMIC_RELAXED);
36 __atomic_store (&v, &count, __ATOMIC_RELEASE);
40 __atomic_store (&v, &count, __ATOMIC_SEQ_CST);