Commit 4607d370 by Steve Ellcey Committed by Steve Ellcey

frame-header-4.c: New test.

2015-11-24  Steve Ellcey  <sellcey@imgtec.com>

	* gcc.target/mips/frame-header-4.c: New test.

From-SVN: r230846
parent 0bfbc166
2015-11-24 Steve Ellcey <sellcey@imgtec.com>
* gcc.target/mips/frame-header-4.c: New test.
2015-11-24 Steven G. Kargl <kargl@gcc.gnu.org>
PR fortran/68486
......
/* Verify that we can optimize away the frame header allocation in bar
by having it use its frame header to store $31 in before calling foo. */
/* { dg-do compile } */
/* { dg-options "-mframe-header-opt -mabi=32" } */
/* { dg-skip-if "code quality test" { *-*-* } { "-O0" } { "" } } */
/* { dg-final { scan-assembler-not "\taddiu\t\\\$sp" } } */
int __attribute__ ((noinline))
foo (int a, int b)
{
return a + b;
}
int __attribute__ ((noinline))
bar (int a, int b)
{
return 1 + foo(a,b);
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment