summaryrefslogtreecommitdiff
path: root/docs/CodeGenerator.html
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
commit61399af13fd46fe1be85807ae1d595b1b9ff62cf (patch)
treebacf3cfbc42dc8010c39bf490e4ff0eb4a2116ff /docs/CodeGenerator.html
parent444099f615c8eebea8d1f22cbad9dfb5664a16e9 (diff)
downloadllvm-61399af13fd46fe1be85807ae1d595b1b9ff62cf.tar.gz
llvm-61399af13fd46fe1be85807ae1d595b1b9ff62cf.tar.bz2
llvm-61399af13fd46fe1be85807ae1d595b1b9ff62cf.tar.xz
Fix example to be valid LLVM assembly.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/CodeGenerator.html')
-rw-r--r--docs/CodeGenerator.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/CodeGenerator.html b/docs/CodeGenerator.html
index c09d9e1cd7..bcbb64cafb 100644
--- a/docs/CodeGenerator.html
+++ b/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>