-
Notifications
You must be signed in to change notification settings - Fork 34
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
Conversation
gumb0
commented
Aug 13, 2020
•
edited
Loading
edited
Codecov Report
@@ Coverage Diff @@
## master #480 +/- ##
=======================================
Coverage 99.54% 99.54%
=======================================
Files 54 54
Lines 16265 16324 +59
=======================================
+ Hits 16191 16250 +59
Misses 74 74 |
|
||
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})); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: unnop -> unop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good otherwise.