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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [vector-compare-2.c] - Rev 801

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

/* { dg-do compile } */   
/* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
/* { dg-options "-mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */
 
/* Test if C_MAYBE_CONST are folded correctly when 
   creating VEC_COND_EXPR.  */
 
typedef int vec __attribute__((vector_size(16)));
 
vec i,j;
extern vec a, b, c;
 
extern int p, q, z;
extern vec foo (int);
 
vec 
foo (int x)
{
  return  foo (p ? q :z) > a;
}
 
vec 
bar (int x)
{
  return  b > foo (p ? q :z);
}
 
 
 

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.