miri icon indicating copy to clipboard operation
miri copied to clipboard

teach miri to use intrinsics' fallback bodies

Open oli-obk opened this issue 2 years ago • 1 comments

And then replace lots of our SIMD and numeric shims with fallback bodies by adding said fallback bodies to libcore.

Note that we need to take lots of care to preserve UB.

This may regress diagnostics quality, so maybe we need some sort of unreachable_unchecked intrinsic equivalent which can be passed a string that explains the UB?

oli-obk avatar Mar 23 '24 10:03 oli-obk

I think we may want to require some sort of opt-in here, like #[rustc_intrinsic_fallback_checks_ub] or so, so that one can locally review in the intrinsic body whether the requirement is upheld.

RalfJung avatar Mar 23 '24 10:03 RalfJung

Isn't this a duplicate of https://github.com/rust-lang/miri/issues/3302?

RalfJung avatar May 03 '24 17:05 RalfJung