From 9c5beed5f5a6da5bd86c7dee6f8f803e8960e6a6 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Wed, 22 Jul 2009 00:04:19 +0000 Subject: Misc. doc fixes following suggestions from Eli. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@76699 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/LangRef.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'docs/LangRef.html') diff --git a/docs/LangRef.html b/docs/LangRef.html index 334cb68..bf98e04 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -2603,6 +2603,7 @@ Instruction <result> = add <ty> <op1>, <op2> ; yields {ty}:result <result> = signed add <ty> <op1>, <op2> ; yields {ty}:result <result> = unsigned add <ty> <op1>, <op2> ; yields {ty}:result + <result> = unsigned signed add <ty> <op1>, <op2> ; yields {ty}:result
Overview:
@@ -2623,7 +2624,7 @@ Instruction is appropriate for both signed and unsigned integers.

If the signed and/or unsigned keywords are present, - the behavior of the add is undefined if signed and/or unsigned + the result value of the add is undefined if signed and/or unsigned overflow, respectively, occurs.

Example:
@@ -2675,6 +2676,7 @@ Instruction <result> = sub <ty> <op1>, <op2> ; yields {ty}:result <result> = signed sub <ty> <op1>, <op2> ; yields {ty}:result <result> = unsigned sub <ty> <op1>, <op2> ; yields {ty}:result + <result> = unsigned signed sub <ty> <op1>, <op2> ; yields {ty}:result
Overview:
@@ -2701,7 +2703,7 @@ Instruction is appropriate for both signed and unsigned integers.

If the signed and/or unsigned keywords are present, - the behavior of the sub is undefined if signed and/or unsigned + the result value of the sub is undefined if signed and/or unsigned overflow, respectively, occurs.

Example:
@@ -2760,6 +2762,7 @@ Instruction <result> = mul <ty> <op1>, <op2> ; yields {ty}:result <result> = signed mul <ty> <op1>, <op2> ; yields {ty}:result <result> = unsigned mul <ty> <op1>, <op2> ; yields {ty}:result + <result> = unsigned signed mul <ty> <op1>, <op2> ; yields {ty}:result
Overview:
@@ -2785,7 +2788,7 @@ Instruction product.

If the signed and/or unsigned keywords are present, - the behavior of the mul is undefined if signed and/or unsigned + the result value of the mul is undefined if signed and/or unsigned overflow, respectively, occurs.

Example:
@@ -2890,8 +2893,9 @@ Instruction undefined behavior; this is a rare case, but can occur, for example, by doing a 32-bit division of -2147483648 by -1.

-

If the exact keyword is present, the result of the sdiv - is undefined if the result would be rounded or if overflow occurs.

+

If the exact keyword is present, the result value of the + sdiv is undefined if the result would be rounded or if overflow + would occur.

Example:
-- 
cgit v1.1