summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/vect/pr40238.c
blob: 91cf09824392599ec94a81289cce08434d27951a (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
30
31
32
33
34
35
/* { dg-do compile } */

extern int xdo_rb_ctr_row( int *pos_code);

int xgp_ahd_interpolate (int tile)
{
 int p[4];

 switch (tile) {
 default:
 case 0:
 case 1:
  p[0] = 0; p[1] = 1; p[2] = 2; p[3] = 3;
  break;
 case 2:
 case 3:
  p[0] = 1; p[1] = 0; p[2] = 3; p[3] = 2;
  break;
 case 4:
 case 5:
  p[0] = 3; p[1] = 2; p[2] = 1; p[3] = 0;
  break;
 case 6:
 case 7:
  p[0] = 2; p[1] = 3; p[2] = 0; p[3] = 1;
  break;
 }

 xdo_rb_ctr_row(p);
 xdo_rb_ctr_row(p);
 return 0;
}

/* { dg-final { cleanup-tree-dump "vect" } } */