aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2005-10-28 23:26:57 +0000
committerNate Begeman <natebegeman@mac.com>2005-10-28 23:26:57 +0000
commit167f1e265161bfebb0370e7e1e0559e50bdd9234 (patch)
treefb02f099a86522572ae748504264eff648bcc090 /lib
parent366080c5e6b4b8e1f07829a2489cc5d21f51bf3b (diff)
downloadexternal_llvm-167f1e265161bfebb0370e7e1e0559e50bdd9234.zip
external_llvm-167f1e265161bfebb0370e7e1e0559e50bdd9234.tar.gz
external_llvm-167f1e265161bfebb0370e7e1e0559e50bdd9234.tar.bz2
New case to handle someday
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@24075 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/PowerPC/README.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/Target/PowerPC/README.txt b/lib/Target/PowerPC/README.txt
index abd9157..972e5bb 100644
--- a/lib/Target/PowerPC/README.txt
+++ b/lib/Target/PowerPC/README.txt
@@ -217,5 +217,22 @@ _test:
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