Use conditional internal functions in if-conversion
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / shrink-wrap-separate-1.c
blob735b606e66de266ea278edcb61a6eb9b2b061d4b
1 /* { dg-do compile { target powerpc*-*-* } } */
2 /* { dg-options "-O2" } */
3 /* { dg-final { scan-assembler {\mmflr\M.*\mbl\M.*\mmflr\M.*\mbl\M} } } */
5 /* This tests if shrink-wrapping for separate components creates more
6 than one prologue when that is useful. In this case, it saves the
7 link register before both the call to g and the call to h. */
9 void g(void) __attribute__((noreturn));
10 void h(void) __attribute__((noreturn));
12 void f(int x)
14 if (x == 42)
15 g();
16 if (x == 31)
17 h();