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] - Rev 801

Go to most recent revision | Compare with Previous | Blame | View Log

/* { 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"  }*/
}
 
/* Test that these intrinsics accept non-literal arguments */
void f4 (vec_uint4 *in, int n)
{
  vec_float4 out = spu_convtf (in[0], n); 
}
 
void f5 (vec_int4 *in, int n)
{
  vec_float4 out = spu_convtf (in[0], n);
}
 
void f6 (vec_float4 *in, int n)
{
  vec_int4 out = spu_convts (in[0], n);
}
 
void f7 (vec_float4 *in, int n)
{
  vec_uint4 out = spu_convtu (in[0], n);
}
 

Go to most recent revision | Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

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