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/] [mips/] [neg-abs-1.c] - Blame information for rev 321

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 321 jeremybenn
/* Make sure that we use abs.fmt and neg.fmt when the signs of NaNs don't
2
   matter.  */
3
/* { dg-do compile } */
4
/* { dg-options "-O2 -mhard-float -ffinite-math-only" } */
5
/* { dg-final { scan-assembler "neg.s" } } */
6
/* { dg-final { scan-assembler "neg.d" } } */
7
/* { dg-final { scan-assembler "abs.s" } } */
8
/* { dg-final { scan-assembler "abs.d" } } */
9
 
10
NOMIPS16 float f1 (float f) { return -f; }
11
NOMIPS16 float f2 (float f) { return __builtin_fabsf (f); }
12
NOMIPS16 double d1 (double d) { return -d; }
13
NOMIPS16 double d2 (double d) { return __builtin_fabs (d); }

powered by: WebSVN 2.1.0

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