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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
- Build Status
Buildable 23680 Build 23679: arc lint + arc unit
Event Timeline
Comment Actions
Are these documented anywhere? I haven't seen it in any of the patches so far. What do they return for NaN inputs?
Comment Actions
No, these new intrinsics aren't explicitly documented anywhere, but they do exactly match the semantics of the corresponding wasm instructions. NaN is converted to zero.
We can not delete this :)