summaryrefslogtreecommitdiffstats
path: root/llvm/docs/CodeGenerator.rst
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2014-01-13 10:47:04 +0000
committerTim Northover <tnorthover@apple.com>2014-01-13 10:47:04 +0000
commitcdc5395680b6112c5b07122563ace13b281c8485 (patch)
tree43184ffb880ca15de354b6bb2d240f86fa9c46a3 /llvm/docs/CodeGenerator.rst
parent59f8d4b4ee2923ea34528656ec9756ec650dd27c (diff)
downloadbcm5719-llvm-cdc5395680b6112c5b07122563ace13b281c8485.tar.gz
bcm5719-llvm-cdc5395680b6112c5b07122563ace13b281c8485.zip
Docs: fix sign of division and increase equivocation on code generated.
I should have been a politician. llvm-svn: 199092
Diffstat (limited to 'llvm/docs/CodeGenerator.rst')
-rw-r--r--llvm/docs/CodeGenerator.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/docs/CodeGenerator.rst b/llvm/docs/CodeGenerator.rst
index c87a6286727..b89d2f426f3 100644
--- a/llvm/docs/CodeGenerator.rst
+++ b/llvm/docs/CodeGenerator.rst
@@ -434,12 +434,12 @@ For example, consider this simple LLVM example:
.. code-block:: llvm
define i32 @test(i32 %X, i32 %Y) {
- %Z = udiv i32 %X, %Y
+ %Z = sdiv i32 %X, %Y
ret i32 %Z
}
-The X86 instruction selector produces this machine code for the ``div`` and
-``ret`` (use "``llc X.bc -march=x86 -print-machineinstrs``" to get this):
+The X86 instruction selector might produce this machine code for the ``div`` and
+``ret``:
.. code-block:: llvm
@@ -454,8 +454,8 @@ The X86 instruction selector produces this machine code for the ``div`` and
%EAX = mov %reg1026 ;; 32-bit return value goes in EAX
ret
-By the end of code generation, the register allocator has coalesced the
-registers and deleted the resultant identity moves producing the following
+By the end of code generation, the register allocator would coalesce the
+registers and delete the resultant identity moves producing the following
code:
.. code-block:: llvm
OpenPOWER on IntegriCloud