OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [spu/] [intrinsics-3.c] - Blame information for rev 691

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 691 jeremybenn
/* { dg-do compile } */
2
#include <spu_intrinsics.h>
3
void f0 (vec_uint4 *in)
4
{
5
  vec_float4 out = spu_convtf (in[0], 128); /* { dg-error "expects an integer literal in the range" "0, 127"  }*/
6
}
7
 
8
void f1 (vec_int4 *in)
9
{
10
  vec_float4 out = spu_convtf (in[0], 128); /* { dg-error "expects an integer literal in the range" "0, 127"  }*/
11
}
12
 
13
void f2 (vec_float4 *in)
14
{
15
  vec_int4 out = spu_convts (in[0], 128); /* { dg-error "expects an integer literal in the range" "0, 127"  }*/
16
}
17
 
18
void f3 (vec_float4 *in)
19
{
20
  vec_uint4 out = spu_convtu (in[0], 128); /* { dg-error "expects an integer literal in the range" "0, 127"  }*/
21
}
22
 
23
/* Test that these intrinsics accept non-literal arguments */
24
void f4 (vec_uint4 *in, int n)
25
{
26
  vec_float4 out = spu_convtf (in[0], n);
27
}
28
 
29
void f5 (vec_int4 *in, int n)
30
{
31
  vec_float4 out = spu_convtf (in[0], n);
32
}
33
 
34
void f6 (vec_float4 *in, int n)
35
{
36
  vec_int4 out = spu_convts (in[0], n);
37
}
38
 
39
void f7 (vec_float4 *in, int n)
40
{
41
  vec_uint4 out = spu_convtu (in[0], n);
42
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.