1 /* Test __atomic routines for existence and proper execution on 8 byte
2 values with each valid memory model. */
4 /* { dg-require-effective-target sync_long_long_runtime } */
5 /* { dg-options "" } */
6 /* { dg-options "-march=pentium" { target { { i?86-*-* x86_64-*-* } && ia32 } } } */
8 /* Test the execution of the __atomic_store_n builtin for a long long. */
10 extern void abort(void);
19 __atomic_store_n (&v, count + 1, __ATOMIC_RELAXED);
23 __atomic_store_n (&v, count + 1, __ATOMIC_RELEASE);
27 __atomic_store_n (&v, count + 1, __ATOMIC_SEQ_CST);
31 /* Now test the generic variant. */
34 __atomic_store (&v, &count, __ATOMIC_RELAXED);
38 __atomic_store (&v, &count, __ATOMIC_RELEASE);
42 __atomic_store (&v, &count, __ATOMIC_SEQ_CST);