Debian Codegraph @

gcc/testsuite/c-c++-common/strub-O2.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -fstrub=strict -fdump-rtl-expand" } */
3 /* { dg-require-effective-target strub } */
4
5 /* At -O2, without -fno-inline, we fully expand enter and update, and add a test
6 around the leave call. */
7
8 int __attribute__ ((__strub__)) var;
9
10 int f() {
11 return var;
12 }
13
14 /* { dg-final { scan-rtl-dump-not "strub_enter" "expand" } } */
15 /* { dg-final { scan-rtl-dump-not "strub_update" "expand" } } */
16 /* { dg-final { scan-rtl-dump "strub_leave" "expand" } } */
17 /* { dg-final { scan-rtl-dump "\[(\]call\[^\n\]*strub_leave.*\n\[(\]code_label" "expand" } } */