1 /* { dg-do compile { target { powerpc*-*-linux* } } } */
2 /* { dg-require-effective-target hard_dfp } */
3 /* { dg-skip-if "do not override -mcpu" { powerpc*-*-* } { "-mcpu=*" } { "-mcpu=power7" } } */
4 /* { dg-options "-mcpu=power7 -O2" } */
5 /* { dg-final { scan-assembler-times "ddedpdq " 4 } } */
6 /* { dg-final { scan-assembler-times "denbcdq " 2 } } */
7 /* { dg-final { scan-assembler-times "dxexq " 1 } } */
8 /* { dg-final { scan-assembler-times "diexq " 1 } } */
9 /* { dg-final { scan-assembler-times "dscliq " 2 } } */
10 /* { dg-final { scan-assembler-times "dscriq " 2 } } */
11 /* { dg-final { scan-assembler-not "bl __builtin" } } */
12 /* { dg-final { scan-assembler-not "dctqpq" } } */
13 /* { dg-final { scan-assembler-not "drdpq" } } */
14 /* { dg-final { scan-assembler-not "stfd" } } */
15 /* { dg-final { scan-assembler-not "lfd" } } */
18 do_dedpdq_0 (_Decimal128 a
)
20 return __builtin_ddedpdq (0, a
);
24 do_dedpdq_1 (_Decimal128 a
)
26 return __builtin_ddedpdq (1, a
);
30 do_dedpdq_2 (_Decimal128 a
)
32 return __builtin_ddedpdq (2, a
);
36 do_dedpdq_3 (_Decimal128 a
)
38 return __builtin_ddedpdq (3, a
);
42 do_enbcdq_0 (_Decimal128 a
)
44 return __builtin_denbcdq (0, a
);
48 do_enbcdq_1 (_Decimal128 a
)
50 return __builtin_denbcdq (1, a
);
54 do_xexq (_Decimal128 a
)
56 return __builtin_dxexq (a
);
60 do_iexq (_Decimal128 a
, _Decimal128 b
)
62 return __builtin_diexq (a
, b
);
66 do_scliq_1 (_Decimal128 a
)
68 return __builtin_dscliq (a
, 1);
72 do_scliq_10 (_Decimal128 a
)
74 return __builtin_dscliq (a
, 10);
78 do_scriq_1 (_Decimal128 a
)
80 return __builtin_dscriq (a
, 1);
84 do_scriq_10 (_Decimal128 a
)
86 return __builtin_dscriq (a
, 10);