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] - Rev 645

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

/* 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" } */
 
 
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 { global compiler_flags; if ![string match "*-m64 *" $compiler_flags] { scan-assembler "return\[ \t\]*%i7\\+8\n\[^\n\]*ld\[ \t\]*\\\[%sp\\+96\\\]" } } } */
 
int bar2 ()
{
  int res;
 
  toto (&res);
  return res;
}
/* { dg-final { global compiler_flags; if ![string match "*-m64 *" $compiler_flags] { scan-assembler "return\[ \t\]*%i7\\+8\n\[^\n\]*nop" } } } */
 

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

powered by: WebSVN 2.1.0

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