Debian Codegraph @

gcc/testsuite/gcc.target/aarch64/nosplit-di-const-volatile_1.c

raw
1 /* Check that storing the 64-bit immediate to a volatile location is done
2 with a single store. */
3
4 /* { dg-do compile } */
5 /* { dg-options "-O2" } */
6
7 typedef unsigned long long u64;
8
9 void bar (u64 *x)
10 {
11 *(volatile u64 *)x = 0xabcdef10abcdef10ULL;
12 }
13
14 /* { dg-final { scan-assembler-times "str\tx..?, .*" 1 } } */
15 /* { dg-final { scan-assembler-not "str\tw..?, .*" } } */