[llvm-dev] Semantics of fdiv division by zero
陳韋任 via llvm-dev
llvm-dev at lists.llvm.org
Thu Jun 22 08:27:43 PDT 2017
Maybe the semantic somehow implied by , but I think it's desired a
2017-06-22 23:04 GMT+08:00 Jan Finis via llvm-dev <llvm-dev at lists.llvm.org>:
> Hey guys,
> I am wondering what the semantics for fdiv is, if the denominator is
> zero. For sdiv, the language reference specifies that this is undefined
> behavior. For fdiv, the language reference says nothing (hence, I assume
> that it is defined somehow).
> So how is it defined? Does it follow IEEE-754 definition, i.e., +Inf if
> nominator is > 0, -Inf if nominator is < 0, otherwise NaN?
> Jan Finis
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
Wei-Ren Chen (陳韋任)
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the llvm-dev