[testsuite] Fix directives order
[official-gcc.git] / gcc / testsuite / gcc.target / powerpc / dfp-builtin-2.c
blobb3b7c990f837c2bcdf62432d8ce2979c161ba484
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" } } */
17 _Decimal128
18 do_dedpdq_0 (_Decimal128 a)
20 return __builtin_ddedpdq (0, a);
23 _Decimal128
24 do_dedpdq_1 (_Decimal128 a)
26 return __builtin_ddedpdq (1, a);
29 _Decimal128
30 do_dedpdq_2 (_Decimal128 a)
32 return __builtin_ddedpdq (2, a);
35 _Decimal128
36 do_dedpdq_3 (_Decimal128 a)
38 return __builtin_ddedpdq (3, a);
41 _Decimal128
42 do_enbcdq_0 (_Decimal128 a)
44 return __builtin_denbcdq (0, a);
47 _Decimal128
48 do_enbcdq_1 (_Decimal128 a)
50 return __builtin_denbcdq (1, a);
53 _Decimal128
54 do_xexq (_Decimal128 a)
56 return __builtin_dxexq (a);
59 _Decimal128
60 do_iexq (_Decimal128 a, _Decimal128 b)
62 return __builtin_diexq (a, b);
65 _Decimal128
66 do_scliq_1 (_Decimal128 a)
68 return __builtin_dscliq (a, 1);
71 _Decimal128
72 do_scliq_10 (_Decimal128 a)
74 return __builtin_dscliq (a, 10);
77 _Decimal128
78 do_scriq_1 (_Decimal128 a)
80 return __builtin_dscriq (a, 1);
83 _Decimal128
84 do_scriq_10 (_Decimal128 a)
86 return __builtin_dscriq (a, 10);