Debian Codegraph @

gcc/testsuite/gcc.target/arm/atomic_loaddi_10.c

raw
1 /* { dg-do compile } */
2 /* { dg-require-effective-target arm_arch_v7ve_ok } */
3 /* { dg-options "-O2" } */
4 /* { dg-add-options arm_arch_v7ve } */
5
6 #include <stdatomic.h>
7
8 atomic_llong x = 0;
9
10 atomic_llong get_x()
11 {
12 return atomic_load(&x);
13 }
14
15 /* { dg-final { scan-assembler "ldrd" } } */