[WebAssembly] Gate i64x2 and f64x2 on -wasm-enable-unimplemented
authorHeejin Ahn <aheejin@gmail.com>
Thu, 9 Aug 2018 23:58:51 +0000 (23:58 +0000)
committerHeejin Ahn <aheejin@gmail.com>
Thu, 9 Aug 2018 23:58:51 +0000 (23:58 +0000)
commit5831e9cc79374ecbdc6c8b13e8eb4d067f996a31
tree5815af46c13031e88aaa2d6b6151448cb445b09e
parent9a8136f7b489ebbe3ae8ceafc912bc0ad9e90356
[WebAssembly] Gate i64x2 and f64x2 on -wasm-enable-unimplemented

Summary:
i64x2 and f64x2 operations are not implemented in V8, so we normally
do not want to emit them. However, they are in the SIMD spec proposal,
so we still want to be able to test them in the toolchain. This patch
adds a flag to enable their emission.

Reviewers: aheejin, dschuff

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

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

Patch by Thomas Lively (tlively)

llvm-svn: 339407
llvm/lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
llvm/test/CodeGen/WebAssembly/simd-arith.ll