search for: testfcmpordered

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

2007 Sep 25
0
[LLVMdev] lli vs JIT diffs on FCmp::ne with NaN operands
...this up? I've included source below which illustrates the problem (with doubles on fcmp one only ... ). Thanks for your help. ~ David declare void @exit(i32) declare void @llvm.memcpy.i32(i8*, i8*, i32, i32) ; see if (%f1!=%f2) gives the expected result %ne_expected (doubles) define void @testFCmpOrdered( double %f1, double %f2, i1 %ne_expected ) { entry: %ne_result = fcmp one double %f1, %f2 %matches = icmp eq i1 %ne_result, %ne_expected br i1 %matches, label %return, label %no_match no_match: call void @exit( i32 1 ) unreachable return: ret void } ; see if NaN ne comparisons work a...