mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-06 23:32:27 +00:00
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:
parent
0a7e18cb23
commit
33634d0672
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user