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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [i386/] [cmov7.c] - Rev 691

Compare with Previous | Blame | View Log

/* PR middle-end/33187 */
 
/* { dg-do compile } */
/* { dg-skip-if "" { i?86-*-* x86_64-*-* } { "-march=*" } { "-march=k8" } } */
/* { dg-options "-O2 -ffast-math -march=k8 -mbranch-cost=5 -mfpmath=387" } */
/* { dg-final { scan-assembler "fcmov" } } */
 
/* compress_float_constant generates load + float_extend
   sequence which combine pass failed to combine into
   (set (reg:DF) (float_extend:DF (mem:SF (symbol_ref...)))).  */
 
double
sgn (double __x)
{
  return __x >= 0.0 ? 1.0 : -1.0;
}
 

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.