Page MenuHomePhabricator

[WebAssembly] Add SIMD integer min/max builtins

Authored by tlively on Mar 6 2020, 1:04 PM.



Although SIMD integer min/max operations can be expressed using the ?:
operator in C++, that operator is disallowed for vectors in C. As a
workaround, this change introduces new WebAssembly-specific builtin
functions that lower to the desired vector icmp/select sequences.

Diff Detail

Event Timeline

tlively created this revision.Mar 6 2020, 1:04 PM
kripken accepted this revision.Mar 6 2020, 1:23 PM
This revision is now accepted and ready to land.Mar 6 2020, 1:23 PM
dschuff accepted this revision.Mar 6 2020, 2:25 PM
This revision was automatically updated to reflect the committed changes.