aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/spu/intrinsics-3.c
blob: d468b23b6d0091ea3d2c7d2b5423bf594d8b1072 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* { dg-do compile } */
#include <spu_intrinsics.h>
void f0 (vec_uint4 *in)
{
  vec_float4 out = spu_convtf (in[0], 128); /* { dg-error "expects an integer literal in the range" "0, 127"  }*/
}

void f1 (vec_int4 *in)
{
  vec_float4 out = spu_convtf (in[0], 128); /* { dg-error "expects an integer literal in the range" "0, 127"  }*/
}

void f2 (vec_float4 *in)
{
  vec_int4 out = spu_convts (in[0], 128); /* { dg-error "expects an integer literal in the range" "0, 127"  }*/
}

void f3 (vec_float4 *in)
{
  vec_uint4 out = spu_convtu (in[0], 128); /* { dg-error "expects an integer literal in the range" "0, 127"  }*/
}