OSDN Git Service

[LangRef] fptosi and fptoui return poison on overflow.
authorEli Friedman <efriedma@codeaurora.org>
Fri, 8 Jun 2018 21:33:33 +0000 (21:33 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Fri, 8 Jun 2018 21:33:33 +0000 (21:33 +0000)
commitc035816d7640e0df31a68f0d1d6d28ad07701d4e
tree7a86bb67ef930ee2f1a2ae9bdefa44d6c99cc34c
parent0d3cb776ccff2527f38d380b63457dba849193a9
[LangRef] fptosi and fptoui return poison on overflow.

I think we assume poison, not undef, for certain transforms we
currently do. In any case, we should clarify the language here.

(This sort of conversion is undefined behavior according to the C
and C++ standards. And in practice, hardware implementations handle
overflow inconsistently, so it would be difficult to define the
result here.)

Differential Revision: https://reviews.llvm.org/D47851

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@334326 91177308-0d34-0410-b5e6-96231b3b80d8
docs/LangRef.rst