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] - Blame information for rev 801

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

Line No. Rev Author Line
1 691 jeremybenn
/* Check that simplification "x*(-1)" -> "-x" is not performed for decimal
2
   float types.  */
3
 
4
/* { dg-do compile { target { powerpc*-*-linux* && powerpc_fprs } } } */
5
/* { dg-options "-std=gnu99 -O -mcpu=power6" } */
6
/* { dg-final { scan-assembler-not "fneg" } } */
7
 
8
extern _Decimal32 a32, b32;
9
extern _Decimal64 a64, b64;
10
extern _Decimal128 a128, b128;
11
 
12
void
13
foo32 (void)
14
{
15
  b32 = a32 * -1.0DF;
16
}
17
 
18
void
19
foo64 (void)
20
{
21
  b64 = a64 * -1.0DD;
22
}
23
 
24
void
25
foo128 (void)
26
{
27
  b128 = a128 * -1.0DL;
28
}

powered by: WebSVN 2.1.0

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