blob: 85b6cba6f5bc1533780cc69757de62f655d5b48d [file]
/* { dg-do compile } */
/* { dg-options "-march=armv8-a -O2" } */
#include <stdatomic.h>
void
foo (int *p, long *q)
{
atomic_store_explicit (p, 2, memory_order_relaxed);
atomic_store_explicit (p + 1, 2, memory_order_release);
atomic_store_explicit (p + 2, 2, memory_order_relaxed);
}
/* { dg-final { scan-assembler-times "mov\tw\[0-9\]+, 2" 1 } } */