diff options
author | Jim Grosbach <grosbach@apple.com> | 2010-12-13 19:18:13 +0000 |
---|---|---|
committer | Jim Grosbach <grosbach@apple.com> | 2010-12-13 19:18:13 +0000 |
commit | 7e294cfcf97cd7b94bf5c4de0f214480ec13adad (patch) | |
tree | c60c9c7a4b227e1e59fdfd6762e33f653a3ea3ea /lib/Target/ARM | |
parent | cf8b3257c051f2c2908ed289396f41d47fd7a4ed (diff) | |
download | external_llvm-7e294cfcf97cd7b94bf5c4de0f214480ec13adad.zip external_llvm-7e294cfcf97cd7b94bf5c4de0f214480ec13adad.tar.gz external_llvm-7e294cfcf97cd7b94bf5c4de0f214480ec13adad.tar.bz2 |
Trailing whitespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121708 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/ARM')
-rw-r--r-- | lib/Target/ARM/ARMAsmBackend.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lib/Target/ARM/ARMAsmBackend.cpp b/lib/Target/ARM/ARMAsmBackend.cpp index e81e454..f14a156 100644 --- a/lib/Target/ARM/ARMAsmBackend.cpp +++ b/lib/Target/ARM/ARMAsmBackend.cpp @@ -112,7 +112,7 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) { } assert ((Value < 4096) && "Out of range pc-relative fixup value!"); Value |= isAdd << 23; - + // Same addressing mode as fixup_arm_pcrel_10, // but with 16-bit halfwords swapped. if (Kind == ARM::fixup_t2_ldst_pcrel_12) { @@ -120,7 +120,7 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) { swapped |= (Value & 0x0000FFFF) << 16; return swapped; } - + return Value; } case ARM::fixup_arm_adr_pcrel_12: { @@ -143,14 +143,14 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) { case ARM::fixup_t2_branch: { Value = Value - 4; Value >>= 1; // Low bit is not encoded. - + uint64_t out = 0; 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; return swapped; @@ -159,9 +159,9 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) { // The value doesn't encode the low bit (always zero) and is offset by // four. The value is encoded into disjoint bit positions in the destination // opcode. x = unchanged, I = immediate value bit, S = sign extension bit - // + // // BL: xxxxxSIIIIIIIIII xxxxxIIIIIIIIIII - // + // // Note that the halfwords are stored high first, low second; so we need // to transpose the fixup value here to map properly. unsigned isNeg = (int64_t(Value) < 0) ? 1 : 0; @@ -177,9 +177,9 @@ static unsigned adjustFixupValue(unsigned Kind, uint64_t Value) { // four (see fixup_arm_thumb_cp). The value is encoded into disjoint bit // positions in the destination opcode. x = unchanged, I = immediate value // bit, S = sign extension bit, 0 = zero. - // + // // BLX: xxxxxSIIIIIIIIII xxxxxIIIIIIIIII0 - // + // // Note that the halfwords are stored high first, low second; so we need // to transpose the fixup value here to map properly. unsigned isNeg = (int64_t(Value) < 0) ? 1 : 0; |