aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/i386/mpx/hard-reg-2-lbv.c
blob: 38fe59f8be99632ff2168a565f9c164f28febb91 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do run { target sse2_runtime } } */
/* { dg-shouldfail "bounds violation" } */
/* { dg-options "-fcheck-pointer-bounds -mmpx -msse2" } */


#define SHOULDFAIL

#include "mpx-check.h"

typedef int v16 __attribute__((vector_size(16)));

int foo(int i) {
  register v16 u asm("xmm0");
  return u[i];
}

int mpx_test (int argc, const char **argv)
{
  printf ("%d\n", foo (-1));
  return 0;
}