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
This commit is contained in:
Eric Christopher 2010-06-29 22:22:22 +00:00
parent 0a7e18cb23
commit 33634d0672

View File

@ -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]