From 7e294cfcf97cd7b94bf5c4de0f214480ec13adad Mon Sep 17 00:00:00 2001 From: Jim Grosbach Date: Mon, 13 Dec 2010 19:18:13 +0000 Subject: [PATCH] Trailing whitespace. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121708 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Target/ARM/ARMAsmBackend.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/Target/ARM/ARMAsmBackend.cpp b/lib/Target/ARM/ARMAsmBackend.cpp index e81e454d397..f14a156b57b 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;