aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/arm/atomic_loaddi_11.c
blob: 85c64ae68b1b1ee68466809f7f83d07ceabec575 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/* { dg-do compile } */
/* { dg-require-effective-target arm_arch_v7r_ok } */
/* { dg-skip-if "do not override -mcpu" { *-*-* } { "-mcpu=*" "-march=*" } { "-mcpu=cortex-r5" } } */
/* { dg-options "-O2 -mcpu=cortex-r5" } */

#include <stdatomic.h>

atomic_llong x = 0;

atomic_llong get_x()
{
  return atomic_load(&x);
}

/* { dg-final { scan-assembler-not "ldrd" } } */