Back to project
URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 327
Rev 338
/* { dg-do compile } */
/* { dg-do compile } */
/* { dg-options "-std=c99 -pedantic-errors" } */
/* { dg-options "-std=c99 -pedantic-errors" } */
#include <spu_intrinsics.h>
#include <spu_intrinsics.h>
/* With this intrinsics section, we used to ICE as we would try
/* With this intrinsics section, we used to ICE as we would try
to convert from an vector to an integer type. */
to convert from an vector to an integer type. */
void f( void )
void f( void )
{
{
vec_uint4 gt, N;
vec_uint4 gt, N;
vec_int4 a;
vec_int4 a;
int * a1;
int * a1;
_Complex double b;
_Complex double b;
gt = spu_cmpgt( a, N) ; /* { dg-error "parameter list" } */
gt = spu_cmpgt( a, N) ; /* { dg-error "parameter list" } */
gt = spu_cmpgt( a, a1) ; /* { dg-error "integer from pointer without a cast" } */
gt = spu_cmpgt( a, a1) ; /* { dg-error "integer from pointer without a cast" } */
gt = spu_cmpgt( a, b) ; /* { dg-error "parameter list" } */
gt = spu_cmpgt( a, b) ; /* { dg-error "parameter list" } */
gt = spu_cmpgt( a, a) ;
gt = spu_cmpgt( a, a) ;
a = spu_cmpgt( a, a) ; /* { dg-message "note: use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts" } */
a = spu_cmpgt( a, a) ; /* { dg-message "note: use -flax-vector-conversions to permit conversions between vectors with differing element types or numbers of subparts" } */
/* { dg-message "note: expected 'int'" "" { target *-*-* } 13 } */
/* { dg-message "note: expected 'int'" "" { target *-*-* } 13 } */
/* { dg-error "incompatible types when assigning" "" { target *-*-* } 16 } */
/* { dg-error "incompatible types when assigning" "" { target *-*-* } 16 } */
}
}
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.