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

Implement {f32,f64}.sqrt instructions #480

Merged
merged 4 commits into from
Aug 13, 2020
Merged

Implement {f32,f64}.sqrt instructions #480

merged 4 commits into from
Aug 13, 2020

Conversation

gumb0
Copy link
Collaborator

@gumb0 gumb0 commented Aug 13, 2020

image

@gumb0 gumb0 changed the title Implement f32_sqrt/f64_sqrt instructions Implement {f32,f64}_sqrt instructions Aug 13, 2020
@gumb0 gumb0 changed the title Implement {f32,f64}_sqrt instructions Implement {f32,f64}.sqrt instructions Aug 13, 2020
@codecov
Copy link

codecov bot commented Aug 13, 2020

Codecov Report

Merging #480 into master will increase coverage by 0.00%.
The diff coverage is 100.00%.

@@           Coverage Diff           @@
##           master     #480   +/-   ##
=======================================
  Coverage   99.54%   99.54%           
=======================================
  Files          54       54           
  Lines       16265    16324   +59     
=======================================
+ Hits        16191    16250   +59     
  Misses         74       74           

@gumb0 gumb0 marked this pull request as ready for review August 13, 2020 10:28

EXPECT_THAT(exec(TypeParam{1}), Result(TypeParam{1}));
EXPECT_THAT(exec(TypeParam{4}), Result(TypeParam{2}));
EXPECT_THAT(exec(TypeParam{0x1.21p+6}), Result(TypeParam{0x1.1p3}));
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
EXPECT_THAT(exec(TypeParam{0x1.21p+6}), Result(TypeParam{0x1.1p3}));
EXPECT_THAT(exec(TypeParam{0x1.21p6}), Result(TypeParam{0x1.1p3}));

@@ -223,6 +223,36 @@ TYPED_TEST(execute_floating_point_types, nan_matchers)
EXPECT_THAT(ExecutionResult{Value{-FP::nan(1)}}, Not(ArithmeticNaN(TypeParam{})));
}

TYPED_TEST(execute_floating_point_types, unop_nan_propagation)
{
// Tests NaN propagation in unary instructions (unnop).
Copy link
Member

Choose a reason for hiding this comment

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

Nit: unnop -> unop

Copy link
Member

@axic axic left a comment

Choose a reason for hiding this comment

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

Looks good otherwise.

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