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.
This commit is contained in:
Alexandre Oliva 2021-04-28 14:07:43 -03:00 committed by Alexandre Oliva
parent 16683cefc6
commit da4a0817be

View File

@ -1,6 +1,6 @@
/* PR rtl-optimization/89676 */
/* { dg-do compile { target ia32 } } */
/* { dg-options "-O2 -mno-stv" } */
/* { dg-options "-O2 -mno-stv -fomit-frame-pointer" } */
unsigned long long
foo (unsigned long long i)