]> granicus.if.org Git - llvm/commit
[WebAssembly] Expand operations not supported by SIMD
authorThomas Lively <tlively@google.com>
Sat, 2 Mar 2019 03:32:25 +0000 (03:32 +0000)
committerThomas Lively <tlively@google.com>
Sat, 2 Mar 2019 03:32:25 +0000 (03:32 +0000)
commit341140cf85665b8f69910d877a26475e0de60af7
tree77903d11348bb4dc272a5fb1d99374a780c83ae8
parent04a0f332110681b09dc2ddcd246a56276d07a5e8
[WebAssembly] Expand operations not supported by SIMD

Summary:
This prevents crashes in instruction selection when these operations
are used. The tests check that the scalar version of the instruction
is used where applicable, although some expansions do not use the
scalar version.

Reviewers: aheejin

Subscribers: dschuff, sbc100, jgravelle-google, hiraditya, sunfish, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D58859

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@355261 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
test/CodeGen/WebAssembly/simd-unsupported.ll [new file with mode: 0644]