sdiv overflow is outright undefined behavior, with or without the

'exact' keyword. Thanks to nlewycky for pointing this out!

llvm-svn: 108064
This commit is contained in:
Dan Gohman 2010-07-11 00:08:34 +00:00
parent b1c6191d3b
commit 226e208014

View File

@ -3564,7 +3564,7 @@ Instruction</a> </div>
<p>If the <tt>exact</tt> keyword is present, the result value of the
<tt>sdiv</tt> is a <a href="#trapvalues">trap value</a> if the result would
be rounded or if overflow would occur.</p>
be rounded.</p>
<h5>Example:</h5>
<pre>