| 1 |
/* { dg-do compile } */ |
| 2 |
/* { dg-options "-O2 -march=z9-ec -mzarch" } */ |
| 3 |
|
| 4 |
#define SIGNBIT(T) \ |
| 5 |
int signbit_##T (T x) { return __builtin_signbit (x); } |
| 6 |
|
| 7 |
SIGNBIT (float) |
| 8 |
/* { dg-final { scan-assembler-times {tceb\t%f[0-9]+,1365} 1 } } */ |
| 9 |
|
| 10 |
SIGNBIT (double) |
| 11 |
/* { dg-final { scan-assembler-times {tcdb\t%f[0-9]+,1365} 1 } } */ |
| 12 |
|
| 13 |
SIGNBIT (_Decimal32) |
| 14 |
/* { dg-final { scan-assembler-times {tdcet\t%f[0-9]+,1365} 1 } } */ |
| 15 |
|
| 16 |
SIGNBIT (_Decimal64) |
| 17 |
/* { dg-final { scan-assembler-times {tdcdt\t%f[0-9]+,1365} 1 } } */ |
| 18 |
|
| 19 |
#define ISFINITE(T) \ |
| 20 |
int isfinite_##T (T x) { return __builtin_isfinite (x); } |
| 21 |
|
| 22 |
ISFINITE (float) |
| 23 |
/* { dg-final { scan-assembler-times {tceb\t%f[0-9]+,4032} 1 } } */ |
| 24 |
|
| 25 |
ISFINITE (double) |
| 26 |
/* { dg-final { scan-assembler-times {tcdb\t%f[0-9]+,4032} 1 } } */ |
| 27 |
|
| 28 |
ISFINITE (_Decimal32) |
| 29 |
/* { dg-final { scan-assembler-times {tdcet\t%f[0-9]+,4032} 1 } } */ |
| 30 |
|
| 31 |
ISFINITE (_Decimal64) |
| 32 |
/* { dg-final { scan-assembler-times {tdcdt\t%f[0-9]+,4032} 1 } } */ |
| 33 |
|
| 34 |
#define ISINF(T) \ |
| 35 |
int isinf_##T (T x) { return __builtin_isinf (x); } |
| 36 |
|
| 37 |
ISINF (float) |
| 38 |
/* { dg-final { scan-assembler-times {tceb\t%f[0-9]+,48} 1 } } */ |
| 39 |
|
| 40 |
ISINF (double) |
| 41 |
/* { dg-final { scan-assembler-times {tcdb\t%f[0-9]+,48} 1 } } */ |
| 42 |
|
| 43 |
ISINF (_Decimal32) |
| 44 |
/* { dg-final { scan-assembler-times {tdcet\t%f[0-9]+,48} 1 } } */ |
| 45 |
|
| 46 |
ISINF (_Decimal64) |
| 47 |
/* { dg-final { scan-assembler-times {tdcdt\t%f[0-9]+,48} 1 } } */ |
| 48 |
|
| 49 |
#define ISNORMAL(T) \ |
| 50 |
int isnormal_##T (T x) { return __builtin_isnormal (x); } |
| 51 |
|
| 52 |
ISNORMAL (float) |
| 53 |
/* { dg-final { scan-assembler-times {tceb\t%f[0-9]+,768} 1 } } */ |
| 54 |
|
| 55 |
ISNORMAL (double) |
| 56 |
/* { dg-final { scan-assembler-times {tcdb\t%f[0-9]+,768} 1 } } */ |
| 57 |
|
| 58 |
ISNORMAL (_Decimal32) |
| 59 |
/* { dg-final { scan-assembler-times {tdcet\t%f[0-9]+,192} 1 } } */ |
| 60 |
|
| 61 |
ISNORMAL (_Decimal64) |
| 62 |
/* { dg-final { scan-assembler-times {tdcdt\t%f[0-9]+,192} 1 } } */ |