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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-stable/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [pr16155.c] - Blame information for rev 859

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

Line No. Rev Author Line
1 322 jeremybenn
/* { dg-do compile { target powerpc*-*-* } } */
2
/* { dg-require-effective-target powerpc_altivec_ok } */
3
/* { dg-options "-maltivec -ansi" } */
4
 
5
/* PR 16155
6
 * Compilation of a simple altivec test program fails if the -ansi flag is
7
 * given to gcc, when compiling with -maltivec.
8
 */
9
 
10
#include <altivec.h>
11
 
12
void foo(void)
13
{
14
  vector unsigned short a, b;
15
  a = vec_splat(b, 0);
16
}
17
 
18
/* { dg-bogus "parse error before \"typeof\"" "-maltivec -mansi" { target powerpc*-*-* } 0 } */

powered by: WebSVN 2.1.0

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