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] - Blame information for rev 774

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

Line No. Rev Author Line
1 689 jeremybenn
/* { dg-do compile } */
2
/* { dg-options "-fno-common" { target hppa*-*-hpux* } } */
3
/* { dg-options "-mabi=altivec" { target { { powerpc*-*-linux* } && ilp32 } } } */
4
 
5
/* Test if C_MAYBE_CONST are folded correctly when
6
   creating VEC_COND_EXPR.  */
7
 
8
typedef int vec __attribute__((vector_size(16)));
9
 
10
vec i,j;
11
extern vec a, b, c;
12
 
13
extern int p, q, z;
14
extern vec foo (int);
15
 
16
vec
17
foo (int x)
18
{
19
  return  foo (p ? q :z) > a;
20
}
21
 
22
vec
23
bar (int x)
24
{
25
  return  b > foo (p ? q :z);
26
}
27
 
28
 

powered by: WebSVN 2.1.0

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