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

[simd] Add spec tests for v128.const #169

Merged
merged 2 commits into from
Jul 6, 2019

Conversation

Honry
Copy link
Contributor

@Honry Honry commented Jul 5, 2019

No description provided.

(assert_return (invoke "f") (v128.const f32x4 +0x1.fffffep127 +0x1.fffffep127 +0x1.fffffep127 +0x1.fffffep127))
(module (func (export "f") (result v128) (v128.const f32x4 -0x1.fffffe8p127 -0x1.fffffe8p127 -0x1.fffffe8p127 -0x1.fffffe8p127)))
(assert_return (invoke "f") (v128.const f32x4 -0x1.fffffep127 -0x1.fffffep127 -0x1.fffffep127 -0x1.fffffep127))
(module (func (export "f") (result v128) (v128.const f32x4 +0x1.fffffefffffffffffp127 +0x1.fffffefffffffffffp127 +0x1.fffffefffffffffffp127 +0x1.fffffefffffffffffp127)))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Same case for 0x1.fffffefffffffffffp127, which is treated as a too large float literal in WAVM.

Test/spec/simd/simd_const.wast Show resolved Hide resolved
@Honry
Copy link
Contributor Author

Honry commented Jul 5, 2019

Cc/ @AndrewScheidecker, @tlively, @arunetm, PTAL. thanks!

(module (func (v128.const f32x4 -340282356779733623858607532500980858880 -340282356779733623858607532500980858880
-340282356779733623858607532500980858880 -340282356779733623858607532500980858880) drop))
(module (func (v128.const f32x4 nan:0x1 nan:0x1 nan:0x1 nan:0x1) drop))
(module (func (v128.const f32x4 nan:0x7f_ffff nan:0x7f_ffff nan:0x7f_ffff nan:0x7f_ffff) drop))
Copy link

Choose a reason for hiding this comment

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

Would it be useful to test using multiple representations in a single v128.const?

Copy link

Choose a reason for hiding this comment

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

I guess more generally, do you think it would be useful to test non-splat vectors? I suppose that might blow up the test space too much.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good proposal! I will add them in a follow-up.

@AndrewScheidecker AndrewScheidecker merged commit 3361fee into WAVM:master Jul 6, 2019
kenohassler pushed a commit to fgsect/WAFL that referenced this pull request Oct 18, 2021
[simd] Add spec tests for v128.const
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