Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Fix f32.demote_f64 nan test cases #793

Merged
merged 1 commit into from
May 5, 2021
Merged

test: Fix f32.demote_f64 nan test cases #793

merged 1 commit into from
May 5, 2021

Conversation

chfast
Copy link
Collaborator

@chfast chfast commented May 5, 2021

No description provided.

@chfast chfast requested review from axic and gumb0 May 5, 2021 15:01
@codecov
Copy link

codecov bot commented May 5, 2021

Codecov Report

Merging #793 (670c51c) into master (2ea01bc) will not change coverage.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #793   +/-   ##
=======================================
  Coverage   99.23%   99.23%           
=======================================
  Files          79       79           
  Lines       12394    12394           
=======================================
  Hits        12299    12299           
  Misses         95       95           
Flag Coverage Δ
rust 99.90% <ø> (ø)
spectests 90.54% <ø> (ø)
unittests 99.16% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...ittests/execute_floating_point_conversion_test.cpp 99.28% <100.00%> (ø)

@@ -173,8 +173,8 @@ TEST(execute_floating_point_conversion, f32_demote_f64)
{0x1.fffffcp0, 0x1.fffffcp0f}, // exact (even)

// The canonical NaN must result in canonical NaN (only the top bit of payload set).
{FP32::nan(FP32::canon), FP64::nan(FP64::canon)},
{-FP32::nan(FP32::canon), -FP64::nan(FP64::canon)},
{FP64::nan(FP64::canon), FP32::nan(FP32::canon)},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, the signature of the struct is double, float.

@chfast chfast merged commit 5a3b3fc into master May 5, 2021
@chfast chfast deleted the test_fix_demote branch May 5, 2021 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants