[llvm-commits] CVS: llvm/lib/Target/PowerPC/README.txt
Nate Begeman
natebegeman at mac.com
Fri Oct 28 16:27:08 PDT 2005
Changes in directory llvm/lib/Target/PowerPC:
README.txt updated: 1.35 -> 1.36
---
Log message:
New case to handle someday
---
Diffs of the changes: (+17 -0)
README.txt | 17 +++++++++++++++++
1 files changed, 17 insertions(+)
Index: llvm/lib/Target/PowerPC/README.txt
diff -u llvm/lib/Target/PowerPC/README.txt:1.35 llvm/lib/Target/PowerPC/README.txt:1.36
--- llvm/lib/Target/PowerPC/README.txt:1.35 Thu Oct 27 19:20:45 2005
+++ llvm/lib/Target/PowerPC/README.txt Fri Oct 28 18:26:57 2005
@@ -217,5 +217,22 @@
stw r2, 0(r3)
blr
+===-------------------------------------------------------------------------===
+Compile
+int foo(int a) { return a * -2 + 63; }
+
+to
+
+_foo:
+ slwi r0,r3,1
+ subfic r3,r0,63
+ blr
+
+instead of:
+
+_foo:
+ mulli r2,r3,-2
+ addi r3,r2,63
+ blr
More information about the llvm-commits
mailing list