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

#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 (3));
  printf ("%d\n", foo (0));
  return 0;
}