search for: nan1

Displaying 1 result from an estimated 1 matches for "nan1".

Did you mean: fan1
2007 Sep 25
0
[LLVMdev] lli vs JIT diffs on FCmp::ne with NaN operands
...n() { entry: %x = alloca i64, align 8 %nan = alloca double, align 8 ; build NaN store i64 -1, i64* %x %nan_as_i8 = bitcast double* %nan to i8* %x_as_i8 = bitcast i64* %x to i8* call void @llvm.memcpy.i32( i8* %nan_as_i8, i8* %x_as_i8, i32 8, i32 8 ) ; load two copies of our NaN %nan1 = load double* %nan %nan2 = load double* %nan ; compare NaN to 0 (NaN != 0 should return 0) call void @testFCmpOrdered( double %nan1, double 0.000000e+00, i1 0 ) ; compare NaN to itself (NaN != NaN should return 0) call void @testFCmpOrdered( double %nan1, double %nan2, i1 0 ) ret i3...