mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-14 00:23:44 +00:00
Revert "AArch64: Set shift bit of TLSLE HI12 add instruction"
This reverts commit r282057 because it broke the buildbots - see e.g. http://lab.llvm.org:8011/builders/clang-cmake-aarch64-42vma/builds/12063 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282058 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
437db4fe24
commit
2c37c7740e
@ -263,12 +263,6 @@ AArch64MCCodeEmitter::getAddSubImmOpValue(const MCInst &MI, unsigned OpIdx,
|
|||||||
|
|
||||||
++MCNumFixups;
|
++MCNumFixups;
|
||||||
|
|
||||||
// Set the shift bit of the add instruction for relocation types
|
|
||||||
// R_AARCH64_TLSLE_ADD_TPREL_HI12 and R_AARCH64_TLSLD_ADD_DTPREL_HI12.
|
|
||||||
AArch64MCExpr::VariantKind RefKind = cast<AArch64MCExpr>(Expr)->getKind();
|
|
||||||
if (RefKind == AArch64MCExpr::VK_TPREL_HI12 ||
|
|
||||||
RefKind == AArch64MCExpr::VK_DTPREL_HI12)
|
|
||||||
ShiftVal = 12;
|
|
||||||
return ShiftVal == 0 ? 0 : (1 << ShiftVal);
|
return ShiftVal == 0 ? 0 : (1 << ShiftVal);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,12 +0,0 @@
|
|||||||
// RUN: llvm-mc -triple=aarch64-none-linux-gnu -filetype=obj < %s -o - | \
|
|
||||||
// RUN: llvm-objdump -r -d - | FileCheck %s
|
|
||||||
|
|
||||||
// TLS add TPREL
|
|
||||||
add x2, x1, #:tprel_hi12:var
|
|
||||||
// CHECK: add x2, x1, #0, lsl #12
|
|
||||||
// CHECK-NEXT: R_AARCH64_TLSLE_ADD_TPREL_HI12 var
|
|
||||||
|
|
||||||
// TLS add DTPREL
|
|
||||||
add x4, x3, #:dtprel_hi12:var
|
|
||||||
// CHECK: add x4, x3, #0, lsl #12
|
|
||||||
// CHECK-NEXT: R_AARCH64_TLSLD_ADD_DTPREL_HI12 var
|
|
Loading…
x
Reference in New Issue
Block a user