[WebAssembly] Fix types in wasm_simd128.h and add tests
authorThomas Lively <tlively@google.com>
Wed, 5 Aug 2020 21:00:01 +0000 (14:00 -0700)
committerThomas Lively <tlively@google.com>
Wed, 5 Aug 2020 21:00:01 +0000 (14:00 -0700)
commitf496950001c47724867912d863858db0a81b4309
treea7bbd11756e0aa9987796f8a49d02e8aeeb63231
parent8c8bb128dfd09f84b27b9e732cf1355582b1d019
[WebAssembly] Fix types in wasm_simd128.h and add tests

47f7174ffa changed the types used in the Wasm SIMD builtin functions,
but not all of their uses in wasm_simd128.h were updated. This commit
fixes wasm_simd128.h and adds tests to make sure similar problems do
not pass uncaught in the future.

Differential Revision: https://reviews.llvm.org/D85347
clang/lib/Headers/wasm_simd128.h
clang/test/Headers/wasm.c [new file with mode: 0644]
clang/test/Headers/wasm.cpp [new file with mode: 0644]