brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 202451b Raw
41 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc -mtriple=riscv32 < %s | FileCheck -check-prefix=RV32 %s3; RUN: llc -mtriple=riscv64 < %s | FileCheck -check-prefix=RV64 %s4 5define void @dwarf() {6; RV32-LABEL: dwarf:7; RV32:       # %bb.0: # %entry8; RV32-NEXT:    addi sp, sp, -169; RV32-NEXT:    .cfi_def_cfa_offset 1610; RV32-NEXT:    sw ra, 12(sp) # 4-byte Folded Spill11; RV32-NEXT:    .cfi_offset ra, -412; RV32-NEXT:    addi a0, sp, 1613; RV32-NEXT:    call foo14; RV32-NEXT:    lw ra, 12(sp) # 4-byte Folded Reload15; RV32-NEXT:    .cfi_restore ra16; RV32-NEXT:    addi sp, sp, 1617; RV32-NEXT:    .cfi_def_cfa_offset 018; RV32-NEXT:    ret19;20; RV64-LABEL: dwarf:21; RV64:       # %bb.0: # %entry22; RV64-NEXT:    addi sp, sp, -1623; RV64-NEXT:    .cfi_def_cfa_offset 1624; RV64-NEXT:    sd ra, 8(sp) # 8-byte Folded Spill25; RV64-NEXT:    .cfi_offset ra, -826; RV64-NEXT:    addi a0, sp, 1627; RV64-NEXT:    call foo28; RV64-NEXT:    ld ra, 8(sp) # 8-byte Folded Reload29; RV64-NEXT:    .cfi_restore ra30; RV64-NEXT:    addi sp, sp, 1631; RV64-NEXT:    .cfi_def_cfa_offset 032; RV64-NEXT:    ret33entry:34  %0 = call ptr @llvm.eh.dwarf.cfa(i32 0)35  call void @foo(ptr %0)36  ret void37}38 39declare void @foo(ptr)40 41