On Thu, 28 Apr 2022, Palmer Dabbelt wrote:

> +proc check_effective_target_fenv_setround {} {
> +  return [check_runtime fenv_setround {
> +    #include <fenv.h>
> +    #include <stdlib.h>
> +    int
> +    main (void)
> +    {
> +      if (fesetround (1) == 0)

There is no reason to expect that 1 is a valid argument to fesetround.  
(It isn't with x86 glibc, for example.)  You need to use whatever FE_* 
rounding mode macro the test in question cares about.

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to