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

Subversion Repositories openrisc_2011-10-31

[/] [openrisc/] [tags/] [gdb/] [gdb-6.8/] [gdb-6.8.openrisc-2.1/] [gdb/] [testsuite/] [gdb.base/] [shr1.c] - Diff between revs 24 and 33

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 24 Rev 33
#include "ss.h"
#include "ss.h"
#include <stdio.h>
#include <stdio.h>
 
 
typedef float f;
typedef float f;
 
 
float sg = 5.5;
float sg = 5.5;
int sgi = 2;
int sgi = 2;
static int sgs = 7;
static int sgs = 7;
 
 
#ifdef PROTOTYPES
#ifdef PROTOTYPES
int shr1(int x)
int shr1(int x)
#else
#else
int shr1(x)
int shr1(x)
int x;
int x;
#endif
#endif
{
{
  f mumble;
  f mumble;
  int l;
  int l;
  l = 1;
  l = 1;
  {
  {
    int l;
    int l;
    l = 2;
    l = 2;
  }
  }
  mumble = 7.7;
  mumble = 7.7;
  sg = 6.6;
  sg = 6.6;
  sgi++;
  sgi++;
  sgs = 8;
  sgs = 8;
  printf("address of sgs is 0x%x\n", &sgs);
  printf("address of sgs is 0x%x\n", &sgs);
  return 2*x;
  return 2*x;
}
}
 
 
#ifdef PROTOTYPES
#ifdef PROTOTYPES
static int shr1_local(int x)
static int shr1_local(int x)
#else
#else
static int shr1_local(x)
static int shr1_local(x)
int x;
int x;
#endif
#endif
{
{
  return 2*x;
  return 2*x;
}
}
 
 
#ifdef PROTOTYPES
#ifdef PROTOTYPES
int structarg(struct s x)
int structarg(struct s x)
#else
#else
int structarg(x)
int structarg(x)
struct s x;
struct s x;
#endif
#endif
{
{
  return x.a;
  return x.a;
}
}
 
 
#ifdef PROTOTYPES
#ifdef PROTOTYPES
int pstructarg(struct s *x)
int pstructarg(struct s *x)
#else
#else
int pstructarg(x)
int pstructarg(x)
struct s *x;
struct s *x;
#endif
#endif
{
{
  return x->a;
  return x->a;
}
}
 
 
 
 
 
 
 
 

powered by: WebSVN 2.1.0

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