Hello! As exposed by gcc.dg/torture/fp-int-convert-timode-?.c testcases from PR88931, it is expected that libgcc2 rounds calculations according to set FP rounding mode. To achieve dynamic rounding, we have to pass -mfp-rounding-mode=d in addition to -mieee when compiling libgcc2.
2019-01-31 Uroš Bizjak <ubiz...@gmail.com> * config/alpha/t-linux: Add -mfp-rounding-mode=d to HOST_LIBGCC2_CFLAGS. Patch was bootstrapped and regression tested on alphaev68-linux-gnu, where it fixes all failures with mentioned testcases. Committed to mainline SVN. Uros.
Index: config/alpha/t-linux =================================================================== --- config/alpha/t-linux (revision 268424) +++ config/alpha/t-linux (working copy) @@ -1 +1,4 @@ SHLIB_MAPFILES += $(srcdir)/config/alpha/libgcc-alpha-ldbl.ver + +# Use dynamic rounding mode. +HOST_LIBGCC2_CFLAGS += -mfp-rounding-mode=d