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/] [powerpc/] [pr39902-2.c] - Rev 325
Go to most recent revision | 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; }
Go to most recent revision | Compare with Previous | Blame | View Log