aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/pr115188.c
blob: 9a4022b56796d6962bb3f22e40bac4b81eb78ccf (plain)
1
2
3
4
5
6
7
8
9
10
/* { dg-do assemble } */
/* { dg-require-effective-target arm_arch_v6m_ok }
/* { dg-options "-O2" } */
/* { dg-add-options arm_arch_v6m } */

void init (int *p, int n)
{
  for (int i = 0; i < n; i++)
    __atomic_store_4 (p + i, 0, __ATOMIC_RELAXED);
}