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

Chris Lattner lattner at cs.uiuc.edu
Thu Aug 24 16:06:16 PDT 2006



Changes in directory llvm/lib/Target:

README.txt updated: 1.35 -> 1.36
---
Log message:

We compile this into:

_swap_16:
        slwi r2, r3, 24
        rlwimi r2, r3, 8, 8, 15
        srwi r3, r2, 16
        blr

now.



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

 README.txt |   18 ------------------
 1 files changed, 18 deletions(-)


Index: llvm/lib/Target/README.txt
diff -u llvm/lib/Target/README.txt:1.35 llvm/lib/Target/README.txt:1.36
--- llvm/lib/Target/README.txt:1.35	Thu Aug 24 18:03:33 2006
+++ llvm/lib/Target/README.txt	Thu Aug 24 18:06:02 2006
@@ -162,24 +162,6 @@
 
 //===---------------------------------------------------------------------===//
 
-Consider this:
-
-unsigned short swap_16(unsigned short v) { return (v>>8) | (v<<8); }
-
-Compiled with the ppc backend:
-
-_swap_16:
-        slwi r2, r3, 8
-        srwi r3, r3, 8
-        or r2, r3, r2
-        rlwinm r3, r2, 0, 16, 31
-        blr
-
-The rlwinm (an and by 65535) is dead.  The dag combiner should propagate bits
-better than that to see this.
-
-//===---------------------------------------------------------------------===//
-
 Add support for conditional increments, and other related patterns.  Instead
 of:
 






More information about the llvm-commits mailing list