[llvm-commits] CVS: llvm/lib/Target/PowerPC/README.txt

Chris Lattner lattner at cs.uiuc.edu
Wed Feb 1 23:37:23 PST 2006



Changes in directory llvm/lib/Target/PowerPC:

README.txt updated: 1.54 -> 1.55
---
Log message:

new example


---
Diffs of the changes:  (+19 -0)

 README.txt |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+)


Index: llvm/lib/Target/PowerPC/README.txt
diff -u llvm/lib/Target/PowerPC/README.txt:1.54 llvm/lib/Target/PowerPC/README.txt:1.55
--- llvm/lib/Target/PowerPC/README.txt:1.54	Thu Feb  2 01:27:56 2006
+++ llvm/lib/Target/PowerPC/README.txt	Thu Feb  2 01:37:11 2006
@@ -448,3 +448,22 @@
         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
+






More information about the llvm-commits mailing list