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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [pr16286.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile { target powerpc*-*-* } } */
2
/* { dg-require-effective-target powerpc_altivec_ok } */
3
/* { dg-options "-maltivec" } */
4
 
5
/* PR 16286
6
   Compilation of a simple Altivec test program fails if vector, pixel
7
   and/or bool are #undefined when compiling with -maltivec.  This may be
8
   done for building C++ programs that use the STL <vector>.  */
9
 
10
#include <altivec.h>
11
#undef vector
12
#undef pixel
13
#undef bool
14
 
15
void test(void)
16
{
17
        __vector unsigned int a, b;
18
        __vector __pixel v0;
19
        __vector __bool v1;
20
 
21
        a = vec_and(a, b);
22
        vec_step (b);
23
}
24
 
25
/* { dg-bogus "(syntax|parse) error before \"vector\"" "-maltivec" { target powerpc*-*-* } 0 } */
26
/* { dg-bogus "(syntax|parse) error before \"pixel\"" "-maltivec" { target powerpc*-*-* } 0 } */
27
/* { dg-bogus "(syntax|parse) error before \"bool\"" "-maltivec" { target powerpc*-*-* } 0 } */

powered by: WebSVN 2.1.0

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