OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.c-torture/] [compile/] [20080922-1.c] - Rev 859

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

typedef struct rtx_def *rtx;
typedef struct rtvec_def *rtvec;
enum rtx_code { PARALLEL, SET };
union rtunion_def {
    rtx rt_rtx;
    rtvec rt_rtvec;
};
typedef union rtunion_def rtunion;
struct rtx_def {
    rtunion fld;
};
struct rtvec_def {
    int num_elem;
};
extern rtx operand;
 
rtx peephole2_insns (rtx x0, enum rtx_code code)
{
  switch (code)
    {
      case SET:
	  operand = (((x0)->fld).rt_rtx);
	  return operand;
      case PARALLEL:
	  if ((((((x0)->fld).rt_rtvec))->num_elem) == 2)
	    return 0;
	  break;
    }
}
 

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.