mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-11 15:07:58 +00:00
Fix typo in Thumb2 branch fixup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121342 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2040961f89
commit
8f07943317
@ -132,11 +132,11 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) {
|
||||
Value >>= 1; // Low bit is not encoded.
|
||||
|
||||
uint64_t out = 0;
|
||||
Value |= (Value & 0x80000) << 7; // S bit
|
||||
Value |= (Value & 0x40000) >> 7; // J2 bit
|
||||
Value |= (Value & 0x20000) >> 4; // J1 bit
|
||||
Value |= (Value & 0x1F800) << 5; // imm6 field
|
||||
Value |= (Value & 0x007FF); // imm11 field
|
||||
out |= (Value & 0x80000) << 7; // S bit
|
||||
out |= (Value & 0x40000) >> 7; // J2 bit
|
||||
out |= (Value & 0x20000) >> 4; // J1 bit
|
||||
out |= (Value & 0x1F800) << 5; // imm6 field
|
||||
out |= (Value & 0x007FF); // imm11 field
|
||||
|
||||
uint64_t swapped = (out & 0xFFFF0000) >> 16;
|
||||
swapped |= (out & 0x0000FFFF) << 16;
|
||||
|
Loading…
x
Reference in New Issue
Block a user