Skip to content

[simd] Implement load lane - #1646

Merged
ngzhian merged 4 commits into
WebAssembly:mainfrom
ngzhian:update-simd-14-loadlane
Mar 22, 2021
Merged

ngzhian merged 4 commits into
WebAssembly:mainfrom
ngzhian:update-simd-14-loadlane

Conversation

@ngzhian

@ngzhian ngzhian commented Mar 17, 2021

Copy link
Copy Markdown
Member

This is a new kind of ir/ast node/instruction. It has 3 immediates:
memarg align, memarg offset, and lane index. This required new visitor
functions in all the places.

Drive-by cleanup to share the simd lane parsing logic between shuffle,
lane op and this new load lane instructions. This requires rebasing some
tests because the error messages are slightly different now.

This is a new kind of ir/ast node/instruction. It has 3 immediates:
memarg align, memarg offset, and lane index. This required new visitor
functions in all the places.

Drive-by cleanup to share the simd lane parsing logic between shuffle,
lane op and this new load lane instructions. This requires rebasing some
tests because the error messages are slightly different now.
@ngzhian
ngzhian requested a review from sbc100 March 17, 2021 18:21
Comment thread src/binary-reader.cc Resolved
@ngzhian

ngzhian commented Mar 19, 2021

Copy link
Copy Markdown
Member Author

@sbc100 ptal, thanks!

@sbc100 sbc100 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should there be an objdump change here? Should we have test that we can disassembly/dump this new instruction?

@ngzhian

ngzhian commented Mar 19, 2021

Copy link
Copy Markdown
Member Author

Good idea, found a bug in the dumping, wasn't overriding the new uint32uint32uint32 correctly. Added the test. Ptal, thanks!

Base automatically changed from master to main March 22, 2021 16:57
@ngzhian

ngzhian commented Mar 22, 2021

Copy link
Copy Markdown
Member Author

@sbc100 ptal, thanks!

@ngzhian
ngzhian merged commit 2c7d257 into WebAssembly:main Mar 22, 2021
@ngzhian
ngzhian deleted the update-simd-14-loadlane branch March 22, 2021 22:22
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.

2 participants