x86: Add a test for PR rtl-optimization/111673
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr111673.c
blob8d8a5a764f0056d94b5ed025f2ae4c580d4aad6b
1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-O2 -fdump-rtl-pro_and_epilogue" } */
4 /* Verify there is an early return without the prolog and shrink-wrap
5 the function. */
7 int f (int);
8 int
9 advance (int dz)
11 if (dz > 0)
12 return (dz + dz) * dz;
13 else
14 return dz * f (dz);
17 /* { dg-final { scan-rtl-dump-times "Performing shrink-wrapping" 1 "pro_and_epilogue" } } */