1 /* { dg-do compile } */
2 /* { dg-options "-mdejagnu-cpu=power10 -O2" } */
3 /* { dg-require-effective-target powerpc_elfv2 } */
4 /* { dg-require-effective-target power10_ok } */
5
6 /* Ensure we generate ".localentry fn,1" for both leaf and non-leaf
7 functions. */
8
9 extern int y (int);
10
11 int x (void)
12 {
13 return y (5);
14 }
15
16 void z (void) { };
17
18 /* { dg-final { scan-assembler {\.localentry\t\mx,1\M} } } */
19 /* { dg-final { scan-assembler {\.localentry\t\mz,1\M} } } */