xref: /llvm-project/llvm/test/DebugInfo/Symbolize/ELF/riscv-temporary-symbol.s (revision bf67610a8ac07ec143f243f129eecd456aa63383)
1# REQUIRES: riscv-registered-target
2## Ignore .L0 symbols that are generated by LLVM integrated assembler and GNU
3## assembler for .debug_line/.eh_frame related assembler directives.
4
5# RUN: llvm-mc -filetype=obj -triple=riscv64 %s -o %t
6# RUN: llvm-readelf -s %t | FileCheck %s --check-prefix=SYM
7
8# SYM: 0000000000000004  0 NOTYPE LOCAL  DEFAULT [[#]] .L0 {{$}}
9# SYM: 0000000000000000  0 NOTYPE GLOBAL DEFAULT [[#]] foo
10
11## Make sure we test at an address larger than or equal to an empty name symbol.
12# RUN: llvm-symbolizer --obj=%t 0 4 | FileCheck %s
13
14# CHECK:       foo
15# CHECK-NEXT:  ??:0:0
16# CHECK-EMPTY:
17# CHECK-NEXT:  foo
18# CHECK-NEXT:  ??:0:0
19
20.globl foo
21foo:
22  nop
23  .file 1 "/tmp" "a.s"
24  .loc 1 1 0
25  nop
26
27.section .debug_line,"",@progbits
28