aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-05-11 18:04:52 +0000
committerDan Gohman <gohman@apple.com>2009-05-11 18:04:52 +0000
commit95df9620c2d25becbb52d63c20ec9b2f7cc36018 (patch)
tree8ddc0c2b7033cc02a293b497e95c3bc28cc62d88
parent946223fbfc283ee85a915d11e7c48d49d4698d16 (diff)
downloadexternal_llvm-95df9620c2d25becbb52d63c20ec9b2f7cc36018.zip
external_llvm-95df9620c2d25becbb52d63c20ec9b2f7cc36018.tar.gz
external_llvm-95df9620c2d25becbb52d63c20ec9b2f7cc36018.tar.bz2
Upgrade this example to new-style syntax.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71447 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/README.txt10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt
index 8399115..e5eca96 100644
--- a/lib/Target/README.txt
+++ b/lib/Target/README.txt
@@ -170,11 +170,11 @@ if anyone cared enough about sincos.
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
}