ad target/118764: Fix a typo in doc/extend.texi.
[official-gcc.git] / gcc / testsuite / gcc.target / i386 / pr111673.c
blobb9ceacf7651201526551dadb775d0382ac0c7a2a
1 /* { dg-do compile { target { ! ia32 } } } */
2 /* { dg-options "-O2 -fdump-rtl-pro_and_epilogue" } */
3 /* Keep labels and directives ('.cfi_startproc', '.cfi_endproc'). */
4 /* { dg-final { check-function-bodies "**" "" "" { target "*-*-*" } {^\t?\.} } } */
6 /*
7 **advance:
8 **.LFB0:
9 ** .cfi_startproc
10 ** testl %edi, %edi
11 ** jle .L2
12 ** imull %edi, %edi
13 ** leal \(%rdi,%rdi\), %eax
14 ** ret
15 **...
18 /* Verify there is an early return without the prolog and shrink-wrap
19 the function. */
21 int f (int);
22 int
23 advance (int dz)
25 if (dz > 0)
26 return (dz + dz) * dz;
27 else
28 return dz * f (dz);
31 /* { dg-final { scan-rtl-dump-times "Performing shrink-wrapping" 1 "pro_and_epilogue" } } */