llvm.org GIT mirror llvm / a631ea9
Add a tests for the new -no-show-raw-insn option of llvm-objdump. This also initiates a test/tools directory where tools-specific tests can be placed. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@168397 91177308-0d34-0410-b5e6-96231b3b80d8 Eli Bendersky 8 years ago
2 changed file(s) with 21 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 // RUN: llvm-mc -filetype=obj -arch=x86 %s | llvm-objdump -d - \
1 // RUN: | FileCheck %s -check-prefix=WITHRAW
2 // RUN: llvm-mc -filetype=obj -arch=x86 %s | llvm-objdump -d -no-show-raw-insn - \
3 // RUN: | FileCheck %s -check-prefix=NORAW
4
5 // Expect to find the raw incoding when run with raw output (default), but not
6 // when run explicitly with -no-show-raw-insn
7
8 movl 0, %eax
9 // WITHRAW: a1 00 00 00 00 movl
10
11 // NORAW: movl
12 // NORAW-NOT: a1 00
13
14
0 config.suffixes = ['.ll', '.s']
1
2 targets = set(config.root.targets_to_build.split())
3 if not 'X86' in targets:
4 config.unsupported = True
5