Merged with mainline at revision 128810.
[official-gcc.git] / gcc / testsuite / gcc.target / sparc / sparc-ret.c
blob11afc10821d4a7befec52c85c02edf9af18e84f4
1 /* { dg-do compile } */
2 /* { dg-require-effective-target ilp32 } */
3 /* { dg-options "-mcpu=ultrasparc -O" } */
5 /* Make sure that Ultrasparc return insn do not read below the stack. */
7 int bar (int a, int b, int c, int d, int e, int f, int g, int h)
9 int res;
11 toto (&res);
12 return h;
14 /* { dg-final { global compiler_flags; if ![string match "*-m64 *" $compiler_flags] { scan-assembler "return\[ \t\]*%i7\\+8\n\[^\n\]*ld\[ \t\]*\\\[%sp\\+96\\\]" } } } */
16 int bar2 ()
18 int res;
20 toto (&res);
21 return res;
23 /* { dg-final { global compiler_flags; if ![string match "*-m64 *" $compiler_flags] { scan-assembler "return\[ \t\]*%i7\\+8\n\[^\n\]*nop" } } } */