gcc/gcc/testsuite/gcc.target/i386/pr89676.c
Alexandre Oliva da4a0817be omit frame pointer in pr89676
This i386 test expects only two movl instructions.

In configurations that --enable-frame-pointer, -O2 won't implicitly
enable -fomit-frame-pointer, so we end up with a third movl to set up
the frame pointer.

This patch enables -fomit-frame-pointer explicitly, so that the result
no longer depends on that configuration option.


for  gcc/testsuite/ChangeLog

	* gcc.target/i386/pr89676.c: Add -fomit-frame-pointer.
2021-04-28 14:08:48 -03:00

11 lines
251 B
C

/* PR rtl-optimization/89676 */
/* { dg-do compile { target ia32 } } */
/* { dg-options "-O2 -mno-stv -fomit-frame-pointer" } */
unsigned long long
foo (unsigned long long i)
{
return i << 3;
}
/* { dg-final { scan-assembler-times "movl" 2 } } */