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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [i386/] [387-10.c] - Blame information for rev 825

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

Line No. Rev Author Line
1 149 jeremybenn
/* PR tree-optimization/24964 */
2
/* { dg-do compile { target i?86-*-* x86_64-*-* } } */
3
/* { dg-options "-O2 -mfpmath=387" } */
4
 
5
double fabs(double x);
6
 
7
double test1(double x)
8
{
9
  double t = fabs(x);
10
  return t*t;
11
}
12
 
13
double test2(double x)
14
{
15
  double t = -x;
16
  return t*t;
17
}
18
 
19
/* { dg-final { scan-assembler-not "fchs" } } */
20
/* { dg-final { scan-assembler-not "fabs" } } */

powered by: WebSVN 2.1.0

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