aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.c-torture/compile/pr94488.c
blob: 6e20a4168de15b320f5f0d06ef7cde8284adb078 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/* PR target/94488 */

typedef unsigned long V __attribute__((__vector_size__(16)));
typedef long W __attribute__((__vector_size__(16)));

void
foo (V *x, unsigned long y)
{
  *x = *x >> (unsigned int) y;
}

void
bar (V *x, unsigned long y)
{
  *x = *x << (unsigned int) y;
}

void
baz (W *x, unsigned long y)
{
  *x = *x >> (unsigned int) y;
}