passes: Print a header in emergency_dump_function
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / dfp-td-3.c
blob1323a48a0805c2ea39eb73ff68b32146b8a71c42
1 /* Test generation of DFP instructions for POWER6. */
2 /* { dg-do compile { target { powerpc*-*-linux* && powerpc_fprs } } } */
3 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power6" } } */
4 /* { dg-options "-std=gnu99 -O1 -mcpu=power6" } */
6 /* { dg-final { scan-assembler-times "fneg" 1 } } */
7 /* { dg-final { scan-assembler-times "fabs" 1 } } */
8 /* { dg-final { scan-assembler-times "fnabs" 1 } } */
9 /* { dg-final { scan-assembler-times "fmr" 3 } } */
11 /* These tests verify we generate fneg, fabs and fnabs and
12 associated fmr's since these are not done in place. */
14 _Decimal128
15 func1 (_Decimal128 a, _Decimal128 b)
17 return -b;
20 _Decimal128
21 func2 (_Decimal128 a, _Decimal128 b)
23 return __builtin_fabsd128 (b);
26 _Decimal128
27 func3 (_Decimal128 a, _Decimal128 b)
29 return - __builtin_fabsd128 (b);