summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/execute/vector-shift1.c
blob: 6041fc3b07e54546228a675910564494ee44c983 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#define vector __attribute__((vector_size(8*sizeof(short))))

int main (int argc, char *argv[]) {
  vector short v0 = {argc,2,3,4,5,6,7};
  vector short v1 = {2,2,2,2,2,2,2};
  vector short r1,r2,r3,r4;
  int i = 8;

  r1 = v0 << 1;
  r2 = v0 >> 1;

  r3 = v0 << v1;
  r4 = v0 >> v1;

  return 0;
}