[LLVMdev] a question about constant fold for fdiv

Jeff Cohen jeffc at jolt-lang.org
Thu Mar 22 18:58:52 CDT 2007


Jeff Cohen wrote:
>
> The standard apparently doesn't explicitly handle 0/0, but the 
> position of the IEEE appears to be that it should yield a NaN of the 
> appropriate sign.  See 
> http://standards.ieee.org/reading/ieee/interp/754-1985.html

OK, it does explicitly handle it.  My reading comprehension seems to be 
lacking right now :(

http://754r.ucbtest.org/standards/754xml.html#invalid-exception

The above lists all operations that yield a NaN.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.cs.uiuc.edu/pipermail/llvmdev/attachments/20070322/eedc80e2/attachment.html 


More information about the LLVMdev mailing list