[WebAssembly] Mark abs of v2i64 as legal
authorThomas Lively <tlively@google.com>
Tue, 4 May 2021 20:25:31 +0000 (13:25 -0700)
committerThomas Lively <tlively@google.com>
Tue, 4 May 2021 20:25:32 +0000 (13:25 -0700)
commit14ca2e5e22e7806c77ca3e5b126e888c9b1c4041
treee98a87960d69cebf1277bddb75d51aa4cc179df0
parentb14c8f5f6eb96e70adb553cc8a4257524881e029
[WebAssembly] Mark abs of v2i64 as legal

We previously had an ISel pattern for i64x2.abs, but because the ISDNode was not
marked legal for v2i64, the instruction was not being selected.

Differential Revision: https://reviews.llvm.org/D101803
llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
llvm/test/CodeGen/WebAssembly/simd-arith.ll