• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1## Show that the --diassemble-functions switch disassembles only the specified
2## functions.
3
4# RUN: yaml2obj -o %t.out %p/Inputs/simple-executable-x86_64.yaml
5# RUN: llvm-objdump -d %t.out --disassemble-symbols=main \
6# RUN:   | FileCheck %s --check-prefix=MAIN --implicit-check-not="<foo>:" --implicit-check-not=somedata
7# RUN: llvm-objdump -d %t.out --disassemble-symbols=main,foo \
8# RUN:   | FileCheck %s --check-prefixes=MAIN,FOO --implicit-check-not=somedata
9
10# FOO: <foo>:
11# MAIN: <main>:
12
13## Unknown symbol name.
14# RUN: llvm-objdump -d %t.out --disassemble-symbols=baz \
15# RUN:   | FileCheck %s --implicit-check-not=Disassembly
16
17## Data symbol.
18# RUN: llvm-objdump -d %t.out --disassemble-symbols=a \
19# RUN:   | FileCheck %s --implicit-check-not=Disassembly
20
21## Data symbol + --disassemble-all.
22# RUN: llvm-objdump -D %t.out --disassemble-symbols=a \
23# RUN:   | FileCheck %s --check-prefix=DATA
24
25# DATA: a:
26