summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/20080922-1.c
blob: 853ec4f25bb02fce3bfce0d92f1c93cd1cd72c24 (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
28
29
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;
    }
}