1
Fork 0
rust/compiler/rustc_const_eval/src
bors 061c33051a Auto merge of #116551 - RalfJung:nondet-nan, r=oli-obk
miri: make NaN generation non-deterministic

This implements the [LLVM semantics for NaN generation](https://llvm.org/docs/LangRef.html#behavior-of-floating-point-nan-values). I will soon submit an RFC to make this also officially the Rust semantics, but it has been our de-facto semantics for a long time so there's no reason Miri has to wait for that RFC. This PR just better aligns Miri with codegen.

This PR does that just for the operations that have MIR primitives; a future PR will adjust the intrinsics.
2023-10-10 11:42:27 +00:00
..
const_eval Auto merge of #115670 - Zoxc:outline-panic-macro-1, r=Mark-Simulacrum 2023-10-01 05:56:47 +00:00
interpret float-to-float casts also have non-deterministic NaN results 2023-10-09 08:30:34 +02:00
transform Auto merge of #114811 - estebank:impl-ambiguity, r=wesleywiser 2023-10-06 18:44:32 +00:00
util Auto merge of #115583 - RalfJung:packed-unsized, r=lcnr 2023-10-07 10:57:18 +00:00
errors.rs don't point at const usage site for resolution-time errors 2023-09-14 22:34:05 +02:00
lib.rs Have a single struct for queries and hook 2023-09-22 16:26:20 +00:00