[PATCH] D53004: [WebAssembly] Saturating float to int intrinsics
Thomas Lively via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 8 16:24:55 PDT 2018
tlively created this revision.
tlively added reviewers: aheejin, dschuff.
Herald added subscribers: llvm-commits, sunfish, jgravelle-google, sbc100.
Although the saturating float to int instructions are already
emitted from normal IR, the fpto{s,u}i instructions produce poison
values if the argument cannot fit in the result type. These intrinsics
are therefore necessary to get guaranteed defined saturating behavior.
Repository:
rL LLVM
https://reviews.llvm.org/D53004
Files:
include/llvm/IR/IntrinsicsWebAssembly.td
lib/Target/WebAssembly/WebAssemblyISD.def
lib/Target/WebAssembly/WebAssemblyISelLowering.cpp
lib/Target/WebAssembly/WebAssemblyInstrConv.td
lib/Target/WebAssembly/WebAssemblyInstrInfo.td
lib/Target/WebAssembly/WebAssemblyInstrSIMD.td
test/CodeGen/WebAssembly/conv.ll
test/CodeGen/WebAssembly/simd-intrinsics.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D53004.168731.patch
Type: text/x-patch
Size: 12566 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181008/46a4cd2e/attachment.bin>
More information about the llvm-commits
mailing list