sdiv overflow is outright undefined behavior, with or without the

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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108064 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2010-07-11 00:08:34 +00:00
parent 3ecf1f0179
commit 38da927703

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>