[llvm-commits] [llvm] r71447 - /llvm/trunk/lib/Target/README.txt

Dan Gohman gohman at apple.com
Mon May 11 11:04:52 PDT 2009


Author: djg
Date: Mon May 11 13:04:52 2009
New Revision: 71447

URL: http://llvm.org/viewvc/llvm-project?rev=71447&view=rev
Log:
Upgrade this example to new-style syntax.

Modified:
    llvm/trunk/lib/Target/README.txt

Modified: llvm/trunk/lib/Target/README.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/README.txt?rev=71447&r1=71446&r2=71447&view=diff

==============================================================================
--- llvm/trunk/lib/Target/README.txt (original)
+++ llvm/trunk/lib/Target/README.txt Mon May 11 13:04:52 2009
@@ -170,11 +170,11 @@
 Turn this into a single byte store with no load (the other 3 bytes are
 unmodified):
 
-void %test(uint* %P) {
-	%tmp = load uint* %P
-        %tmp14 = or uint %tmp, 3305111552
-        %tmp15 = and uint %tmp14, 3321888767
-        store uint %tmp15, uint* %P
+define void @test(i32* %P) {
+	%tmp = load i32* %P
+        %tmp14 = or i32 %tmp, 3305111552
+        %tmp15 = and i32 %tmp14, 3321888767
+        store i32 %tmp15, i32* %P
         ret void
 }
 





More information about the llvm-commits mailing list