Debian Codegraph @

gcc/testsuite/gcc.target/powerpc/pr114759-1.c

raw
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -mdejagnu-cpu=power10 -mrop-protect -fdump-rtl-pro_and_epilogue" } */
3 /* { dg-require-effective-target rop_ok } Only enable on supported ABIs. */
4
5 /* Verify we still attempt shrink-wrapping when using -mrop-protect
6 and there are no function calls. */
7
8 long
9 foo (long arg)
10 {
11 if (arg)
12 asm ("" ::: "r20");
13 return 0;
14 }
15
16 /* { dg-final { scan-rtl-dump-times "Performing shrink-wrapping" 1 "pro_and_epilogue" } } */