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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.dg/] [scal-to-vec2.c] - Blame information for rev 689

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 for C_MAYBE_CONST are folded correctly when
6
   expanding an expression to vector.  */
7
 
8
int                     f(void);
9
unsigned int            g(void);
10
unsigned int            h;
11
 
12
typedef unsigned int vec __attribute__((vector_size(16)));
13
 
14
vec i;
15
 
16
 
17
vec fv1(void) { return i + (h ? f() : g()); }
18
vec fv2(void) { return (h ? f() : g()) + i; }

powered by: WebSVN 2.1.0

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