aboutsummaryrefslogtreecommitdiff
path: root/lib/Target/PowerPC/README.txt
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-01 06:36:20 +0000
committerChris Lattner <sabre@nondot.org>2006-03-01 06:36:20 +0000
commit00d18f0879fb02d90aaf27e53a8a6bab2513ab5d (patch)
tree26ccc82142393d10df8f66d0f93d3e813052a71d /lib/Target/PowerPC/README.txt
parent5126984b1da4bda0e93961da07e883699f1f2d57 (diff)
add a note
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26448 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/README.txt')
-rw-r--r--lib/Target/PowerPC/README.txt18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/README.txt b/lib/Target/PowerPC/README.txt
index 9ab35fe484..050f614291 100644
--- a/lib/Target/PowerPC/README.txt
+++ b/lib/Target/PowerPC/README.txt
@@ -434,3 +434,21 @@ int f(signed char *a, _Bool b, _Bool c) {
if (c) *a = t;
}
+===-------------------------------------------------------------------------===
+
+This:
+int test(unsigned *P) { return *P >> 24; }
+
+Should compile to:
+
+_test:
+ lbz r3,0(r3)
+ blr
+
+not:
+
+_test:
+ lwz r2, 0(r3)
+ srwi r3, r2, 24
+ blr
+