brintos

brintos / llvm-project-archived public Read only

0
0
Text · 548 B · 60cd55f Raw
22 lines · plain
1# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=-relax < %s \2# RUN:     | llvm-readobj -r - | FileCheck %s3 4## .option relax overrides -mno-relax and enables R_RISCV_ALIGN/R_RISCV_RELAX relocations.5# CHECK:      .rela.text6# CHECK:       R_RISCV_CALL_PLT7# CHECK-NEXT:  R_RISCV_RELAX8# CHECK-NEXT:  R_RISCV_ALIGN9.option relax10call foo11.align 412 13## Alignments before the first linker-relaxable instruction do not need relocations.14# CHECK-NOT: .rela.text115.section .text1,"ax"16.align 417nop18 19# CHECK: .rela.text220.section .text2,"ax"21call foo22