summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthijs Kooijman <matthijs@stdin.nl>2008-06-04 15:46:35 +0000
committerMatthijs Kooijman <matthijs@stdin.nl>2008-06-04 15:46:35 +0000
commita6bb22e9bccb677afff3cbcc2de18d016e3c3d0c (patch)
treee998e9c923b38714968beea11cf576b07fdc447c
parent1cb246ef20d11bf625631cbc00b4a2b163384553 (diff)
downloadbcm5719-llvm-a6bb22e9bccb677afff3cbcc2de18d016e3c3d0c.tar.gz
bcm5719-llvm-a6bb22e9bccb677afff3cbcc2de18d016e3c3d0c.zip
Fix example to be valid LLVM assembly.
llvm-svn: 51942
-rw-r--r--llvm/docs/CodeGenerator.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/docs/CodeGenerator.html b/llvm/docs/CodeGenerator.html
index c09d9e1cd70..bcbb64cafb1 100644
--- a/llvm/docs/CodeGenerator.html
+++ b/llvm/docs/CodeGenerator.html
@@ -621,9 +621,9 @@ copies a virtual register into or out of a physical register when needed.</p>
<div class="doc_code">
<pre>
-int %test(int %X, int %Y) {
- %Z = div int %X, %Y
- ret int %Z
+define i32 @test(i32 %X, i32 %Y) {
+ %Z = udiv i32 %X, %Y
+ ret i32 %Z
}
</pre>
</div>
OpenPOWER on IntegriCloud