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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [gcc/] [testsuite/] [gcc.target/] [powerpc/] [pr39902-2.c] - Rev 691

Compare with Previous | Blame | View Log

/* Check that simplification "x*(-1)" -> "-x" is not performed for decimal
   float types.  */
 
/* { dg-do compile { target { powerpc*-*-linux* && powerpc_fprs } } } */
/* { dg-options "-std=gnu99 -O -mcpu=power6" } */
/* { dg-final { scan-assembler-not "fneg" } } */
 
extern _Decimal32 a32, b32;
extern _Decimal64 a64, b64;
extern _Decimal128 a128, b128;
 
void
foo32 (void)
{
  b32 = a32 * -1.0DF;
}
 
void
foo64 (void)
{
  b64 = a64 * -1.0DD;
}
 
void
foo128 (void)
{
  b128 = a128 * -1.0DL;
}
 

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.