-
Notifications
You must be signed in to change notification settings - Fork 230
[simd] Add spec tests for integer abs ops #260
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
Conversation
- i8x16.abs
- i16x8.abs
- i32x4.abs
- i8x16.abs - i16x8.abs - i32x4.abs
@AndrewScheidecker, @tlively, PTAL, thanks! |
@@ -34,8 +36,19 @@ def lane_width(self): | |||
return int(self.LANE_TYPE.replace('i', '').split('x')[0]) | |||
|
|||
@property | |||
def get_test_data_with_const(self): | |||
"""test const vs const and param vs const""" | |||
def get_unary_test_data_1(self): |
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.
Why the _1
suffix on this name? If there is a conflict with get_unary_test_data
below, perhaps this method could have a more descriptive name?
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.
These test data are both for testing 'const vs const' and 'different lanes go through different if-then clauses' for unary ops, I don't have a good suffix name for these, how about get_unary_test_data_others
?
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.
Maybe get_unary_complex_test_data
or get_unary_combination_test_data
?
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.
Thanks @tlively, I am OK on get_unary_complex_test_data
, since we have another combination tests, get_unary_combination_test_data
will cause misleading.
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.
Done.
LGTM, thanks! |
Tests are pulled from WAVM/WAVM#260
Tests are pulled from WAVM/WAVM#260
* [simd] Add spec tests for integer abs ops - i8x16.abs - i16x8.abs - i32x4.abs