Use conditional internal functions in if-conversion
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / dfp-dd-2.c
blob193208ed76ff8bdf4addf6866e02f11328de9f59
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" 0 } } */
11 _Decimal64
12 func1 (_Decimal64 a, _Decimal64 b)
14 return -b;
17 _Decimal64
18 func2 (_Decimal64 a, _Decimal64 b)
20 return __builtin_fabsd64 (b);
23 _Decimal64
24 func3 (_Decimal64 a, _Decimal64 b)
26 return - __builtin_fabsd64 (b);