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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-old/] [gcc-4.2.2/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [ppc-fsel-1.c] - Blame information for rev 816

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 149 jeremybenn
/* { dg-do compile { target powerpc*-*-* } } */
2
/* { dg-options "-O -mpowerpc-gfxopt -fno-trapping-math" } */
3
/* { dg-final { scan-assembler "fsel" } } */
4
 
5
/* If the user doesn't care about signals, fsel can be used in many cases.  */
6
 
7
double foo(double a, double b, double c, double d)
8
{
9
  return a < b ? c : d;
10
}

powered by: WebSVN 2.1.0

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