git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121272
91177308-0d34-0410-b5e6-
96231b3b80d8
assert ((Value < 256) && "Out of range pc-relative fixup value!");
Value |= isAdd << 23;
- // Same addressing mode as fixup_arm_pcrel_10, but with the bytes reordered.
+ // Same addressing mode as fixup_arm_pcrel_10,
+ // but with 16-bit halfwords swapped.
if (Kind == ARM::fixup_t2_pcrel_10) {
uint64_t swapped = (Value & 0xFFFF0000) >> 16;
swapped |= (Value & 0x0000FFFF) << 16;