mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 703531 - Fix ARMAssembler::getOp2RegScale on < ARMv5. r=cdleary
This commit is contained in:
parent
17d09c5aec
commit
b0618a0c3f
@ -112,10 +112,10 @@ ARMWord ARMAssembler::getOp2RegScale(RegisterID reg, ARMWord scale)
|
||||
: // No clobbers.
|
||||
);
|
||||
#else
|
||||
ARMWord lz = 0; // Accumulate leading zeroes.
|
||||
lz = 0; // Accumulate leading zeroes.
|
||||
for (ARMWord s = 16; s > 0; s /= 2) {
|
||||
ARMWord mask = 0xffffffff << (32-lz-s);
|
||||
if ((x & mask) == 0) {
|
||||
if ((scale & mask) == 0) {
|
||||
lz += s;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user