This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [committed] [testsuite] Fix fp-int-convert-timode-1.c testism.


On Thu, 21 Nov 2019, Tamar Christina wrote:

> Hi All,
> 
> The test fp-int-convert-timode-1.c uses FE_TONEAREST without
> actually checking if the target has defined it.
> 
> Like the rest of the tests I now add a check to see if the target
> has actually implemented it.

FE_TONEAREST is the default rounding mode, so it would be better just to 
remove the fesetround call and <fenv.h> include and fenv effective-target 
and -frounding-math option and let this test run for all configurations 
with int128 support.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]