OpenCores
URL https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.dg/] [sparc-ret.c] - Blame information for rev 645

Go to most recent revision | Details | Compare with Previous | View Log

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

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.