You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
666 B
20 lines
666 B
# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+relax < %s \
|
|
# RUN: | llvm-readobj -r - | FileCheck -check-prefix=RELAX-RELOC %s
|
|
# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=-relax < %s \
|
|
# RUN: | llvm-readobj -r - | FileCheck -check-prefix=NORELAX-RELOC %s
|
|
|
|
func:
|
|
.cfi_startproc
|
|
ret
|
|
.cfi_endproc
|
|
|
|
# RELAX-RELOC: Section (4) .rela.eh_frame {
|
|
# RELAX-RELOC-NEXT: 0x1C R_RISCV_32_PCREL - 0x0
|
|
# RELAX-RELOC-NEXT: 0x20 R_RISCV_ADD32 - 0x0
|
|
# RELAX-RELOC-NEXT: 0x20 R_RISCV_SUB32 - 0x0
|
|
# RELAX-RELOC-NEXT: }
|
|
|
|
# NORELAX-RELOC: Section (4) .rela.eh_frame {
|
|
# NORELAX-RELOC-NEXT: 0x1C R_RISCV_32_PCREL - 0x0
|
|
# NORELAX-RELOC-NEXT: }
|