1 /* { dg-do run { target { power10_hw } } } */
2 /* { dg-require-effective-target rop_ok } */
3 /* { dg-options "-O2 -mdejagnu-cpu=power10 -mrop-protect" } */
4
5 /* Verify that ROP-protect instructions execute correctly when a
6 call is present. */
7
8 void __attribute__((noipa)) foo ()
9 {
10 asm ("");
11 }
12
13 int main ()
14 {
15 foo ();
16 return 0;
17 }
18