Check parameter type of spu intrinsics spu_convts, spu_convtu, spu_convtf
From-SVN: r132184
This commit is contained in:
parent
3f4dc604b0
commit
6ec6b7f23c
1 changed files with 21 additions and 0 deletions
21
gcc/testsuite/gcc.target/spu/intrinsics-3.c
Normal file
21
gcc/testsuite/gcc.target/spu/intrinsics-3.c
Normal file
|
@ -0,0 +1,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" }*/
|
||||
}
|
Loading…
Add table
Reference in a new issue