brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.0 KiB · 92fceeb Raw
36 lines · plain
1## The file testing R_LARCH_ALIGN emitting when linker-relaxation enabled.2 3# RUN: llvm-mc --filetype=obj --triple=loongarch64 --mattr=+relax %s -o %t.n4# RUN: llvm-objdump -dr %t.n | FileCheck %s --check-prefix=RELAX5# RUN: llvm-mc --filetype=obj --triple=loongarch64 --mattr=+relax --defsym FILL=1 %s -o %t.f6# RUN: llvm-objdump -dr %t.f | FileCheck %s --check-prefixes=RELAX,ALIGN7 8# ALIGN:         nop9# ALIGN-NEXT:        R_LARCH_ALIGN *ABS*+0x1c10# ALIGN-COUNT-6: nop11# RELAX:         ret12# RELAX:         pcaddu18i $ra, 013# RELAX-NEXT:        R_LARCH_CALL36 f14# RELAX-NEXT:        R_LARCH_RELAX *ABS*15# RELAX-NEXT:    jirl $ra, $ra, 016 17.text18.option push19.option norelax20## When FILL is defined, the order of Alignment directive in this lower-numbered21## subsection will be larger, and even larger than the section order of the first22## linker-relaxable call36 instruction. It should conservatively be treated as23## linker-relaxable even has norelax.24.ifdef FILL25  .space 026.endif27.p2align 528foo:29  ret30.option pop31 32.text 133  .space 034bar:35  call36 f36