HomePhabricator

[WebAssembly] Saturating float to int intrinsics

Description

[WebAssembly] Saturating float to int intrinsics

Summary:
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.

Reviewers: aheejin, dschuff

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

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

Details

Committed
tlivelyOct 10 2018, 5:01 PM
Differential Revision
D53004: [WebAssembly] Saturating float to int intrinsics
Parents
rL344203: [hwasan] simplify a test
Branches
Unknown
Tags
Unknown