blob: 0ddd47d1bc81c69e2de81304f3d66119b1c58df3 [file] [log] [blame]
/* { dg-do compile } */
/* { dg-options "-O3 -march=z14 -mzarch --save-temps" } */
/* { dg-do run { target { s390_z14_hw } } } */
#include <assert.h>
__attribute__ ((noipa)) static long double
long_double_from_float (float x)
{
return x;
}
/* { dg-final { scan-assembler-times {\n\tldebr\t} 1 } } */
/* { dg-final { scan-assembler-times {\n\twflld\t} 1 } } */
int
main (void)
{
assert (long_double_from_float (42.F) == 42.L);
assert (long_double_from_float (-42.F) == -42.L);
}