Page MenuHomePhabricator

[WebAssembly] Implement v128.select
ClosedPublic

Authored by tlively on Jul 13 2020, 7:52 PM.

Details

Summary

Although the SIMD spec proposal does not specifically include a
select instruction, the select instruction in MVP WebAssembly is
polymorphic over the selected types, so it is able to work on v128
values when they are enabled. This patch introduces a new variant of
the select instruction for each legal vector type. Additional ISel
patterns are adapted from the SELECT_I32 and SELECT_I64 patterns.

Depends on D83736.

Diff Detail

Event Timeline

tlively created this revision.Jul 13 2020, 7:52 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 13 2020, 7:52 PM
aheejin accepted this revision.Jul 15 2020, 11:43 PM
This revision is now accepted and ready to land.Jul 15 2020, 11:43 PM
This revision was automatically updated to reflect the committed changes.