Forever119
Forever119
For selected subnormal inputs and underflow boundaries, Miri differs from the native reciprocal and reciprocal-square-root instructions. ### Program ``` use std::arch::x86_64::*; fn main() { unsafe { for bits in [0x00400000u32,...
For a rounding-sensitive reduction and an all-negative-zero reduction, Miri differs from native DPPS. ### Program ``` use std::arch::x86_64::*; fn main() { unsafe { let a = std::mem::transmute([1e20f32, 1., -1e20, 1.]);...
For selected NaN inputs, Miri returns a finite angle while native execution returns NaN. ### Program ``` fn main() { println!("atan2f={:?}", f32::NAN.atan2(f32::NEG_INFINITY)); println!("atan2={:?}", f64::NAN.atan2(0.0)); } ``` ### Output ``` native:...
A fast operation returns a non-finite value and asin returns a value outside its endpoint range. ### Program ``` #![feature(core_intrinsics)] #![allow(internal_features)] fn main() { unsafe { let m = f32::MAX;...
For a 16-byte allocation, alive-exec evaluates the maximum object size as 0 instead of a value of at least 16. ### Program ``` declare i64 @llvm.objectsize.i64.p0(ptr, i1 immarg, i1 immarg,...
After two loop iterations with mutually dependent PHI nodes, alive-exec returns 0 instead of 1. ### Program ``` define i32 @main() { entry: br label %loop loop: %a = phi...
With 64-bit pointers and 32-bit pointer indices, alive-exec reports that a GEP with offset 4294967296 differs from its base pointer. ### Program ``` target datalayout = "e-p:64:64:64:32" define i32 @main()...
A load at offset 2 from a pointer with inrange(0,1) returns 99 without an undefined-behavior diagnostic. ### Program ``` @g = private constant [4 x i8] c"abcd" define i32 @main()...