[WebAssembly] Add libcall signatures for roundeven
authorThomas Lively <tlively@google.com>
Tue, 4 Apr 2023 15:32:25 +0000 (08:32 -0700)
committerThomas Lively <tlively@google.com>
Tue, 4 Apr 2023 15:32:26 +0000 (08:32 -0700)
commit62bfb0b14ce979c3b73e73dd70c6d76e51cb6071
tree0f6a9cc7098597db605305a473595affbb0b0f4a
parent8ec36e6956cb03d80f3fee8e593808c43a8a1ec3
[WebAssembly] Add libcall signatures for roundeven

Since clang started emitting roundeven intrinsics in a7d6593a0a17, they would
cause a crash in the WebAssembly backend because it did not know the roundeven
library function signatures. Fix the crash by adding the signatures.

Differential Revision: https://reviews.llvm.org/D147476
llvm/lib/Target/WebAssembly/WebAssemblyRuntimeLibcallSignatures.cpp
llvm/test/CodeGen/WebAssembly/libcalls.ll