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/] [altivec-29.c] - Rev 322

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

/* PR target/39558 */
/* { dg-do compile { target powerpc*-*-* } } */
/* { dg-require-effective-target powerpc_altivec_ok } */
/* { dg-options "-maltivec -save-temps" } */
 
#define ATTRIBUTE_UNUSED __attribute__((unused))
 
int *foo (int *vector)
{
  return vector;
}
 
int *bar (int *vector ATTRIBUTE_UNUSED)
{
  return vector;
}
 
int *baz (int *vector __attribute__((unused)))
{
  return vector;
}
 
/* { dg-final { cleanup-saved-temps } } */
 

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.