aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/pr69551.c
blob: 1505fc21dbf86a953757b6354f45bd94ef98075e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/* PR target/69551 */
/* { dg-do run { target sse_runtime } } */
/* { dg-options "-O2 -mno-sse2 -msse" } */

typedef unsigned char v16qi __attribute__ ((vector_size (16)));
typedef unsigned int v4si __attribute__ ((vector_size (16)));

char __attribute__ ((noinline, noclone))
test (v4si vec)
{
  vec[1] = 0x5fb856;
  return ((v16qi) vec)[0];
}

int
main ()
{
  char z = test ((v4si) { -1, -1, -1, -1 });

  if (z != -1)
    __builtin_abort ();
  return 0;
}