Displaying 2 results from an estimated 2 matches for "i_fcmp".
Did you mean:
g_fcmp
2012 Jul 10
1
[LLVMdev] floating point: seto opcode
Hi,
Given the following in ISDOpcodes.h
SETO, // 0 1 1 1 True if ordered (no nans)
SETUO, // 1 0 0 0 True if unordered: isnan(X) |
isnan(Y)
Is it safe to assume that SETO is not of SETUO? We have support for setuo
in the architecture but not seto.
Sirish
-------------- next part --------------
An HTML attachment was scrubbed...
2007 Sep 25
0
[LLVMdev] lli vs JIT diffs on FCmp::ne with NaN operands
I am having a little trouble with the fcmp one instruction on doubles only.
For ordered comparisons, the LLVM manual states that true should be returned
iff neither operands is QNAN. ( http://llvm.org/docs/LangRef.html#i_fcmp)
If I do fcmp one which includes one or both operands as a NaN, the result is
expected to be 0 then.
If I run the bitcode with lli (JIT off), no problem. If I use the JIT (lli
--force-interpreted=true), then it returns 1.
(Converely, fcmp une with the JIT returns 0 instead of the expected 1 ......