[WebAssembly] Fix argument types in SIMD narrowing intrinsics
authorThomas Lively <tlively@google.com>
Thu, 6 May 2021 17:07:44 +0000 (10:07 -0700)
committerThomas Lively <tlively@google.com>
Thu, 6 May 2021 17:07:45 +0000 (10:07 -0700)
commitb198b9b8974b19c9e8493f8d70c85ac54182597a
tree3510a09647614ac15abc48e8f3a2602dc4439497
parentf0adf3a24cdedb4c48e49a8792c5cfbd40ba3345
[WebAssembly] Fix argument types in SIMD narrowing intrinsics

The builtins were updated to take signed parameters in 627a52695537, but the
intrinsics that use those builtins were not updated as well. The intrinsic test
did not catch this sign mismatch because it is only reported as an error under
-fno-lax-vector-conversions.

This commit fixes the type mismatch and adds -fno-lax-vector-conversions to the
test to catch similar problems in the future.

Differential Revision: https://reviews.llvm.org/D101979
clang/lib/Headers/wasm_simd128.h
clang/test/Headers/wasm.c