1 /* Check that we can assemble both base atomic variants, for v0. */
2 /* { dg-do assemble } */
3 /* { dg-options "-O2 -march=v0" { target { ! march_option } } } */
9 #if !defined(op) && !defined(xchg)
23 int sfa (type
*p
, type
*q
, int a
)
25 return __atomic_fetch_nand (p
, a
, __ATOMIC_ACQ_REL
)
26 + __atomic_fetch_add (q
, a
, __ATOMIC_SEQ_CST
);
31 void acen (type
*ptr
, type
*val
, type
*ret
)
33 __atomic_exchange (ptr
, val
, ret
, __ATOMIC_SEQ_CST
);