1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 02:52:53 +02:00

Docs: fix sign of division and increase equivocation on code generated.

I should have been a politician.

llvm-svn: 199092
This commit is contained in:
Tim Northover 2014-01-13 10:47:04 +00:00
parent 2c63f62596
commit 7eec1d8532

View File

@ -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