1 /* Test __atomic routines for existence and proper execution on 16 byte
2 values with each valid memory model. */
4 /* { dg-require-effective-target sync_int_128_runtime } */
5 /* { dg-options "-mcx16" { target { i?86-*-* x86_64-*-* } } } */
7 /* Test the execution of the __atomic_store_n builtin for a 16 byte value. */
9 extern void abort(void);
18 __atomic_store_n (&v, count + 1, __ATOMIC_RELAXED);
22 __atomic_store_n (&v, count + 1, __ATOMIC_RELEASE);
26 __atomic_store_n (&v, count + 1, __ATOMIC_SEQ_CST);
30 /* Now test the generic variant. */
33 __atomic_store (&v, &count, __ATOMIC_RELAXED);
37 __atomic_store (&v, &count, __ATOMIC_RELEASE);
41 __atomic_store (&v, &count, __ATOMIC_SEQ_CST);