This commit was manufactured by cvs2svn to create branch
[official-gcc.git] / gcc / testsuite / gcc.dg / sparc-ret.c
blob3a4ddea58ecea11ba5804c0975e406fffec3fc8d
1 /* Copyright (C) 2001 Free Software Foundation.
3 Making sure that Ultrasparc return instructions do not read
4 below the stack. */
6 /* { dg-do compile { target sparc-*-* } } */
7 /* { dg-options "-mcpu=ultrasparc -O" } */
10 int bar (int a, int b, int c, int d, int e, int f, int g, int h)
12 int res;
14 toto (&res);
15 return h;
17 /* { dg-final { global compiler_flags; if ![string match "*-m64 *" $compiler_flags] { scan-assembler "return\[ \t\]*%i7\\+8\n\[^\n\]*ld\[ \t\]*\\\[%sp\\+96\\\]" } } } */
19 int bar2 ()
21 int res;
23 toto (&res);
24 return res;
26 /* { dg-final { global compiler_flags; if ![string match "*-m64 *" $compiler_flags] { scan-assembler "return\[ \t\]*%i7\\+8\n\[^\n\]*nop" } } } */