| 1 |
/* { dg-do assemble } */ |
| 2 |
/* { dg-require-effective-target arm_v8_vfp_ok } */ |
| 3 |
/* { dg-require-effective-target arm_arch_v8a_ok } */ |
| 4 |
/* { dg-options "-O2 -ffast-math" } */ |
| 5 |
/* { dg-add-options arm_v8_vfp } */ |
| 6 |
/* { dg-add-options arm_arch_v8a } */ |
| 7 |
|
| 8 |
int global; |
| 9 |
|
| 10 |
void |
| 11 |
lceil_float (float x, int b) |
| 12 |
{ |
| 13 |
if (b) global = __builtin_lceilf (x); |
| 14 |
} |
| 15 |
|
| 16 |
void |
| 17 |
lceil_double (double x, int b) |
| 18 |
{ |
| 19 |
if (b) global = __builtin_lceil (x); |
| 20 |
} |
| 21 |
|
| 22 |
void |
| 23 |
lfloor_float (float x, int b) |
| 24 |
{ |
| 25 |
if (b) global = __builtin_lfloorf (x); |
| 26 |
} |
| 27 |
|
| 28 |
void |
| 29 |
lfloor_double (double x, int b) |
| 30 |
{ |
| 31 |
if (b) global = __builtin_lfloor (x); |
| 32 |
} |
| 33 |
|
| 34 |
void |
| 35 |
lround_float (float x, int b) |
| 36 |
{ |
| 37 |
if (b) global = __builtin_lroundf (x); |
| 38 |
} |
| 39 |
|
| 40 |
void |
| 41 |
lround_double (double x, int b) |
| 42 |
{ |
| 43 |
if (b) global = __builtin_lround (x); |
| 44 |
} |