Debian Codegraph @

gcc/testsuite/g++.dg/abi/aarch64_guard1.C

raw
1 // Check that the initialization guard variable is an 8-byte aligned,
2 // 8-byte doubleword and that only the least significant bit is used
3 // for initialization guard variables.
4 // { dg-do compile { target aarch64*-*-* } }
5 // { dg-options "-O -fdump-tree-original -fno-section-anchors" }
6
7 int bar();
8
9 int *foo ()
10 {
11 static int x = bar ();
12 return &x;
13 }
14
15 // { dg-final { scan-assembler _ZGVZ3foovE1x,8,8 } }
16 // { dg-final { scan-tree-dump "& 1" "original" } }