OSDN Git Service

[WebAssembly] SIMD conversions
authorThomas Lively <tlively@google.com>
Wed, 26 Sep 2018 00:34:36 +0000 (00:34 +0000)
committerThomas Lively <tlively@google.com>
Wed, 26 Sep 2018 00:34:36 +0000 (00:34 +0000)
commit969fcec33e81911537cbc6770280fc1614bcf21c
treeaee1de6b55ddd9791250562d1fe385d2631c6573
parentf048c66f45118354a2efd1990f9bbb587febfd7d
[WebAssembly] SIMD conversions

Summary:
Lowers (s|u)itofp and fpto(s|u)i instructions for vectors. The fp to
int conversions produce poison values if their arguments are out of
the convertible range, so a future CL will have to add an LLVM
intrinsic to make the saturating behavior of this conversion usable.

Reviewers: aheejin, dschuff

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

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@343052 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
test/CodeGen/WebAssembly/simd-conversions.ll [new file with mode: 0644]
test/MC/WebAssembly/simd-encodings.s