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