1 /* 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
foo32(void)13 foo32 (void)
14 {
15   b32 = a32 * -1.0DF;
16 }
17 
18 void
foo64(void)19 foo64 (void)
20 {
21   b64 = a64 * -1.0DD;
22 }
23 
24 void
foo128(void)25 foo128 (void)
26 {
27   b128 = a128 * -1.0DL;
28 }
29