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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gcc-4.5.1/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [warn-2.c] - Blame information for rev 478

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-skip-if "" { powerpc*-*-darwin* } { "*" } { "" } } */
3
/* { dg-options "-O -mcpu=power7 -mno-altivec" } */
4
 
5
/* { dg-warning "-mno-altivec disables vsx" "" { target *-*-* } 1 } */
6
 
7
double
8
foo (double *x, double *y)
9
{
10
  double z[2];
11
  int i;
12
 
13
  for (i = 0; i < 2; i++)
14
    z[i] = x[i] + y[i];
15
  return z[0] * z[1];
16
}
17
 
18
/* { dg-final { scan-assembler-not "xsadddp" } } */

powered by: WebSVN 2.1.0

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