mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-17 05:29:24 +00:00
this case is matched now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57096 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
8c34cd287a
commit
b1ac769873
@ -271,15 +271,7 @@ alas...
|
|||||||
|
|
||||||
//===---------------------------------------------------------------------===//
|
//===---------------------------------------------------------------------===//
|
||||||
|
|
||||||
This isn't recognized as bswap by instcombine:
|
This isn't recognized as bswap by instcombine (yes, it really is bswap):
|
||||||
|
|
||||||
unsigned int swap_32(unsigned int v) {
|
|
||||||
v = ((v & 0x00ff00ffU) << 8) | ((v & 0xff00ff00U) >> 8);
|
|
||||||
v = ((v & 0x0000ffffU) << 16) | ((v & 0xffff0000U) >> 16);
|
|
||||||
return v;
|
|
||||||
}
|
|
||||||
|
|
||||||
Nor is this (yes, it really is bswap):
|
|
||||||
|
|
||||||
unsigned long reverse(unsigned v) {
|
unsigned long reverse(unsigned v) {
|
||||||
unsigned t;
|
unsigned t;
|
||||||
|
Loading…
Reference in New Issue
Block a user