[lld] [llvm] [llvm][lld] Pre-commit tests for RISCV TLSDESC symbols (PR #85816)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 19 09:57:23 PDT 2024
================
@@ -192,3 +201,31 @@ b:
.tbss
.globl c
c: .zero 4
+
+#--- d.s
+ .text
+ .attribute 4, 16
+ .attribute 5, "rv64i2p1_m2p0_a2p1_c2p0"
+ .globl bar
+ .p2align 1
+ .type bar, at function
+bar:
+ addi sp, sp, -16
+.Lpcrel_hi0:
+ auipc a0, %got_pcrel_hi(_ZTH3foo)
+ ld a0, %pcrel_lo(.Lpcrel_hi0)(a0)
+ beqz a0, .Ltlsdesc_hi0
+ call _ZTH3foo
----------------
MaskRay wrote:
remove unneeded instructions from the test
https://github.com/llvm/llvm-project/pull/85816
More information about the llvm-commits
mailing list