Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / MC / RISCV / cfi-advance.s
blobd9224fd2ae1c9fe553f3233e8e80658ef0ddf6ae
1 # RUN: llvm-mc -filetype=obj -triple riscv32 %s -o %t.o
2 # RUN: llvm-readobj -r %t.o | FileCheck -check-prefix=CHECK %s
3 # RUN: llvm-dwarfdump --debug-frame %t.o 2>&1 \
4 # RUN: | FileCheck -check-prefix=CHECK-DWARFDUMP %s
6 # CHECK: .rela.eh_frame {
7 # CHECK-NEXT: 0x1C R_RISCV_32_PCREL <null> 0x0
8 # CHECK-NEXT: }
9 # CHECK-DWARFDUMP: DW_CFA_advance_loc1: 104
10 # CHECK-DWARFDUMP-NEXT: DW_CFA_def_cfa_offset: +8
11 # CHECK-DWARFDUMP-NEXT: DW_CFA_advance_loc2: 259
12 # CHECK-DWARFDUMP-NEXT: DW_CFA_def_cfa_offset: +8
13 # CHECK-DWARFDUMP-NEXT: DW_CFA_advance_loc4: 65539
14 # CHECK-DWARFDUMP-NEXT: DW_CFA_def_cfa_offset: +8
15 .text
16 .globl test # -- Begin function test
17 .p2align 1
18 .type test,@function
19 test:
20 .cfi_startproc
21 nop
22 .zero 100, 0x90
23 .cfi_def_cfa_offset 8
24 nop
25 .zero 255, 0x90
26 .cfi_def_cfa_offset 8
27 nop
28 .zero 65535, 0x90
29 .cfi_def_cfa_offset 8
30 nop
31 .cfi_endproc