35 lines · plain
1# RUN: llvm-mc -filetype=obj -triple=riscv32 < %s | llvm-dwarfdump -eh-frame - \2# RUN: | FileCheck --check-prefixes=CHECK,RV32 %s3# RUN: llvm-mc -filetype=obj -triple=riscv64 < %s | llvm-dwarfdump -eh-frame - \4# RUN: | FileCheck --check-prefixes=CHECK,RV64 %s5 6func:7 .cfi_startproc8 ret9 .cfi_endproc10 11# CHECK: 00000000 00000010 00000000 CIE12# CHECK: Version: 113# CHECK: Augmentation: "zR"14# CHECK: Code alignment factor: 115 16# TODO: gas uses -4 for the data alignment factor for both RV32 and RV64. They17# do so on the basis that on RV64F, F registers may only be 4 bytes18# (DWARF2_CIE_DATA_ALIGNMENT).19 20# RV32: Data alignment factor: -421# RV64: Data alignment factor: -822 23# CHECK: Return address column: 124 25# Check the pointer encoding for address pointers used in FDE. This is set by26# FDECFIEncoding and should be DW_EH_PE_pcrel | DW_EH_PE_sdata4 (0x1b).27 28# CHECK: Augmentation data: 1B29# CHECK: DW_CFA_def_cfa: X2 +030#31# CHECK: 00000014 00000010 00000018 FDE cie=00000000 pc=00000000...0000000432# CHECK: DW_CFA_nop:33# CHECK: DW_CFA_nop:34# CHECK: DW_CFA_nop:35