This bugzilla service is closed. All entries have been migrated to https://gitlab.com/libeigen/eigen
Bug 1780 - half_float test fails with modern CPU features enabled
Summary: half_float test fails with modern CPU features enabled
Status: NEW
Alias: None
Product: Eigen
Classification: Unclassified
Component: Tests (show other bugs)
Version: 3.4 (development)
Hardware: x86 - 64-bit Linux
: Normal Failed Unit Test
Assignee: Nobody
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-11-20 16:19 UTC by Hans Johnson
Modified: 2019-12-04 18:56 UTC (History)
3 users (show)



Attachments
A script that demonstrates compiler flags that begin to fail for the half_float test (2.45 KB, text/x-sh)
2019-11-20 16:19 UTC, Hans Johnson
no flags Details

Description Hans Johnson 2019-11-20 16:19:50 UTC
Created attachment 963 [details]
A script that demonstrates compiler flags that begin to fail for the half_float test

This unit test fails with compiler support of any of the following features
which are part of the "-march=ivybridge" architecture settings.


`-target-feature +fsgsbase -target-feature +rdrnd -target-feature +f16c`

VERIFY_IS_EQUAL( std::numeric_limits<half>::signaling_NaN().x, half(std::numeric_limits<float>::signaling_NaN()).x );

The failure is documented for both Mac/clang and Linux/gcc builds.

Using the "-mtune=native -march=native" compiler flags on recently (i.e. ~5 years ago) released CPU's demonstrates this issue.
Comment 1 Nobody 2019-12-04 18:56:09 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to gitlab.com's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.com/libeigen/eigen/issues/1780.

Note You need to log in before you can comment on or make changes to this bug.