blob: 629bbb155ef85bd50961e474d0d797be02d4c6e1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/* Copyright (C) 2001 Free Software Foundation.
Making sure that Ultrasparc return instructions do not read
below the stack. */
/* { dg-do compile { target sparc*-*-* } } */
/* { dg-options "-mcpu=ultrasparc -O -m32" } */
int bar (int a, int b, int c, int d, int e, int f, int g, int h)
{
int res;
toto (&res);
return h;
}
/* { dg-final { scan-assembler "return\[ \t\]*%i7\\+8\n\[^\n\]*ld\[ \t\]*\\\[%sp\\+96\\\]" } } */
int bar2 ()
{
int res;
toto (&res);
return res;
}
/* { dg-final { scan-assembler "return\[ \t\]*%i7\\+8\n\[^\n\]*nop" } } */
|