brintos

brintos / llvm-project-archived public Read only

0
0
Text · 772 B · c2526a6 Raw
27 lines · plain
1# RUN: llvm-mc --filetype=obj --triple=loongarch32 %s -o %t-la322# RUN: llvm-readelf -rs %t-la32 | FileCheck %s --check-prefixes=CHECK,RELOC323# RUN: llvm-mc --filetype=obj --triple=loongarch64 %s -o %t-la644# RUN: llvm-readelf -rs %t-la64 | FileCheck %s --check-prefixes=CHECK,RELOC645 6## This test is similar to test/MC/CSKY/relocation-specifier.s.7 8# RELOC32: '.rela.data'9# RELOC32: R_LARCH_32 00000000 local10 11# RELOC64: '.rela.data'12# RELOC64: R_LARCH_32 0000000000000000 local13 14# CHECK: TLS GLOBAL DEFAULT UND gd15# CHECK: TLS GLOBAL DEFAULT UND ld16# CHECK: TLS GLOBAL DEFAULT UND ie17# CHECK: TLS GLOBAL DEFAULT UND le18 19pcalau12i $t1, %gd_pc_hi20(gd)20pcalau12i $t1, %ld_pc_hi20(ld)21pcalau12i $t1, %ie_pc_hi20(ie)22lu12i.w $t1, %le_hi20_r(le)23 24.data25local:26.long local27