aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2010-06-29 22:22:22 +0000
committerEric Christopher <echristo@apple.com>2010-06-29 22:22:22 +0000
commit5797c8828137c2f82a16bd74419b55558096bc2b (patch)
treee61531782f3fd86b7e7c1d927ef8b0927d7bcdbc
parent0b55708f27328a36fd6632308f9dca01c7a81c67 (diff)
downloadexternal_llvm-5797c8828137c2f82a16bd74419b55558096bc2b.zip
external_llvm-5797c8828137c2f82a16bd74419b55558096bc2b.tar.gz
external_llvm-5797c8828137c2f82a16bd74419b55558096bc2b.tar.bz2
Add another bswap idiom that isn't matched.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107213 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Target/README.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/Target/README.txt b/lib/Target/README.txt
index efb91a1..b1080b5 100644
--- a/lib/Target/README.txt
+++ b/lib/Target/README.txt
@@ -300,6 +300,14 @@ unsigned long reverse(unsigned v) {
return v ^ (t >> 8);
}
+Neither is this (very standard idiom):
+
+int f(int n)
+{
+ return (((n) << 24) | (((n) & 0xff00) << 8)
+ | (((n) >> 8) & 0xff00) | ((n) >> 24));
+}
+
//===---------------------------------------------------------------------===//
[LOOP RECOGNITION]