summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-07-22 00:04:19 +0000
committerDan Gohman <gohman@apple.com>2009-07-22 00:04:19 +0000
commit71dfd782ce8b4523ae1200011074d1cea02978bd (patch)
tree9205b1f747aa8adab4db8e1c475c55f975728c46
parent87aaa194f9dfc98ec34c4a14100f71381db24981 (diff)
downloadbcm5719-llvm-71dfd782ce8b4523ae1200011074d1cea02978bd.tar.gz
bcm5719-llvm-71dfd782ce8b4523ae1200011074d1cea02978bd.zip
Misc. doc fixes following suggestions from Eli.
llvm-svn: 76699
-rw-r--r--llvm/docs/LangRef.html14
1 files changed, 9 insertions, 5 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html
index 334cb68772c..bf98e040ca7 100644
--- a/llvm/docs/LangRef.html
+++ b/llvm/docs/LangRef.html
@@ -2603,6 +2603,7 @@ Instruction</a> </div>
&lt;result&gt; = add &lt;ty&gt; &lt;op1&gt;, &lt;op2&gt; <i>; yields {ty}:result</i>
&lt;result&gt; = signed add &lt;ty&gt; &lt;op1&gt;, &lt;op2&gt; <i>; yields {ty}:result</i>
&lt;result&gt; = unsigned add &lt;ty&gt; &lt;op1&gt;, &lt;op2&gt; <i>; yields {ty}:result</i>
+ &lt;result&gt; = unsigned signed add &lt;ty&gt; &lt;op1&gt;, &lt;op2&gt; <i>; yields {ty}:result</i>
</pre>
<h5>Overview:</h5>
@@ -2623,7 +2624,7 @@ Instruction</a> </div>
is appropriate for both signed and unsigned integers.</p>
<p>If the <tt>signed</tt> and/or <tt>unsigned</tt> keywords are present,
- the behavior of the <tt>add</tt> is undefined if signed and/or unsigned
+ the result value of the <tt>add</tt> is undefined if signed and/or unsigned
overflow, respectively, occurs.</p>
<h5>Example:</h5>
@@ -2675,6 +2676,7 @@ Instruction</a> </div>
&lt;result&gt; = sub &lt;ty&gt; &lt;op1&gt;, &lt;op2&gt; <i>; yields {ty}:result</i>
&lt;result&gt; = signed sub &lt;ty&gt; &lt;op1&gt;, &lt;op2&gt; <i>; yields {ty}:result</i>
&lt;result&gt; = unsigned sub &lt;ty&gt; &lt;op1&gt;, &lt;op2&gt; <i>; yields {ty}:result</i>
+ &lt;result&gt; = unsigned signed sub &lt;ty&gt; &lt;op1&gt;, &lt;op2&gt; <i>; yields {ty}:result</i>
</pre>
<h5>Overview:</h5>
@@ -2701,7 +2703,7 @@ Instruction</a> </div>
is appropriate for both signed and unsigned integers.</p>
<p>If the <tt>signed</tt> and/or <tt>unsigned</tt> keywords are present,
- the behavior of the <tt>sub</tt> is undefined if signed and/or unsigned
+ the result value of the <tt>sub</tt> is undefined if signed and/or unsigned
overflow, respectively, occurs.</p>
<h5>Example:</h5>
@@ -2760,6 +2762,7 @@ Instruction</a> </div>
&lt;result&gt; = mul &lt;ty&gt; &lt;op1&gt;, &lt;op2&gt; <i>; yields {ty}:result</i>
&lt;result&gt; = signed mul &lt;ty&gt; &lt;op1&gt;, &lt;op2&gt; <i>; yields {ty}:result</i>
&lt;result&gt; = unsigned mul &lt;ty&gt; &lt;op1&gt;, &lt;op2&gt; <i>; yields {ty}:result</i>
+ &lt;result&gt; = unsigned signed mul &lt;ty&gt; &lt;op1&gt;, &lt;op2&gt; <i>; yields {ty}:result</i>
</pre>
<h5>Overview:</h5>
@@ -2785,7 +2788,7 @@ Instruction</a> </div>
product.</p>
<p>If the <tt>signed</tt> and/or <tt>unsigned</tt> keywords are present,
- the behavior of the <tt>mul</tt> is undefined if signed and/or unsigned
+ the result value of the <tt>mul</tt> is undefined if signed and/or unsigned
overflow, respectively, occurs.</p>
<h5>Example:</h5>
@@ -2890,8 +2893,9 @@ Instruction</a> </div>
undefined behavior; this is a rare case, but can occur, for example, by doing
a 32-bit division of -2147483648 by -1.</p>
-<p>If the <tt>exact</tt> keyword is present, the result of the <tt>sdiv</tt>
- is undefined if the result would be rounded or if overflow occurs.</p>
+<p>If the <tt>exact</tt> keyword is present, the result value of the
+ <tt>sdiv</tt> is undefined if the result would be rounded or if overflow
+ would occur.</p>
<h5>Example:</h5>
<pre>
OpenPOWER on IntegriCloud