summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-02-02 07:37:11 +0000
committerChris Lattner <sabre@nondot.org>2006-02-02 07:37:11 +0000
commit9dd7df7ee7fde2215b82ff25b2e82720d3e60908 (patch)
tree3caa3c587546b55fa87df917826cbe6ddc5c91d2 /llvm/lib/Target
parentcd018525f8b1897df51688b63000de00708cfd69 (diff)
downloadbcm5719-llvm-9dd7df7ee7fde2215b82ff25b2e82720d3e60908.tar.gz
bcm5719-llvm-9dd7df7ee7fde2215b82ff25b2e82720d3e60908.zip
new example
llvm-svn: 25903
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/PowerPC/README.txt19
1 files changed, 19 insertions, 0 deletions
diff --git a/llvm/lib/Target/PowerPC/README.txt b/llvm/lib/Target/PowerPC/README.txt
index d77d20d85ad..468d974a278 100644
--- a/llvm/lib/Target/PowerPC/README.txt
+++ b/llvm/lib/Target/PowerPC/README.txt
@@ -448,3 +448,22 @@ LBB1_2:
blr
noticed in 2005-05-11-Popcount-ffs-fls.c.
+
+
+===-------------------------------------------------------------------------===
+
+We should custom expand setcc instead of pretending that we have it. That
+would allow us to expose the access of the crbit after the mfcr, allowing
+that access to be trivially folded into other ops. A simple example:
+
+int foo(int a, int b) { return (a < b) << 4; }
+
+compiles into:
+
+_foo:
+ cmpw cr7, r3, r4
+ mfcr r2, 1
+ rlwinm r2, r2, 29, 31, 31
+ slwi r3, r2, 4
+ blr
+
OpenPOWER on IntegriCloud