[llvm-commits] CVS: llvm/lib/Target/PowerPC/README.txt
Chris Lattner
lattner at cs.uiuc.edu
Tue Feb 28 22:36:33 PST 2006
Changes in directory llvm/lib/Target/PowerPC:
README.txt updated: 1.67 -> 1.68
---
Log message:
add a note
---
Diffs of the changes: (+18 -0)
README.txt | 18 ++++++++++++++++++
1 files changed, 18 insertions(+)
Index: llvm/lib/Target/PowerPC/README.txt
diff -u llvm/lib/Target/PowerPC/README.txt:1.67 llvm/lib/Target/PowerPC/README.txt:1.68
--- llvm/lib/Target/PowerPC/README.txt:1.67 Tue Feb 28 23:50:56 2006
+++ llvm/lib/Target/PowerPC/README.txt Wed Mar 1 00:36:20 2006
@@ -434,3 +434,21 @@
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
+
More information about the llvm-commits
mailing list