Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 0 additions & 24 deletions llvm/test/CodeGen/LoongArch/fix-tle-le-sym-type.ll

This file was deleted.

26 changes: 26 additions & 0 deletions llvm/test/MC/LoongArch/Relocations/relocation-specifier.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# RUN: llvm-mc --filetype=obj --triple=loongarch32 %s -o %t-la32
# RUN: llvm-readelf -rs %t-la32 | FileCheck %s --check-prefixes=CHECK,RELOC32
# RUN: llvm-mc --filetype=obj --triple=loongarch64 %s -o %t-la64
# RUN: llvm-readelf -rs %t-la64 | FileCheck %s --check-prefixes=CHECK,RELOC64

## This test is similar to test/MC/CSKY/relocation-specifier.s.

# RELOC32: '.rela.data'
# RELOC32: R_LARCH_32 00000000 .data + 0

# RELOC64: '.rela.data'
# RELOC64: R_LARCH_32 0000000000000000 .data + 0

# CHECK: TLS GLOBAL DEFAULT UND gd
# CHECK: TLS GLOBAL DEFAULT UND ld
# CHECK: TLS GLOBAL DEFAULT UND ie
# CHECK: TLS GLOBAL DEFAULT UND le

pcalau12i $t1, %gd_pc_hi20(gd)
pcalau12i $t1, %ld_pc_hi20(ld)
pcalau12i $t1, %ie_pc_hi20(ie)
lu12i.w $t1, %le_hi20_r(le)

.data
local:
.long local