Files
rust/src/librustc_codegen_ssa
Manish Goregaokar 65342fd341 Rollup merge of #73724 - CryZe:wasm-saturating-casts, r=alexcrichton
Use WASM's saturating casts if they are available

WebAssembly supports saturating floating point to integer casts behind a target feature. The feature is already available on many browsers. Beginning with 1.45 Rust will start defining the behavior of floating point to integer casts to be saturating as well. For this Rust constructs additional checks on top of the `fptoui` / `fptosi` instructions it emits. Here we introduce the possibility for the codegen backend to construct saturating casts itself and only fall back to constructing the checks ourselves if that is not possible.

Resolves part of #73591
2020-07-02 15:55:52 -07:00
..
2020-05-22 13:31:02 -07:00
2020-06-02 20:38:24 +03:00
2020-06-25 18:52:41 -07:00
2020-03-30 07:16:56 +02:00
2020-06-29 12:31:25 -07:00
2020-03-30 07:16:56 +02:00