From 61399af13fd46fe1be85807ae1d595b1b9ff62cf Mon Sep 17 00:00:00 2001 From: Matthijs Kooijman Date: Wed, 4 Jun 2008 15:46:35 +0000 Subject: [PATCH] Fix example to be valid LLVM assembly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@51942 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/CodeGenerator.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/CodeGenerator.html b/docs/CodeGenerator.html index c09d9e1cd70..bcbb64cafb1 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.

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