diff options
author | Eli Bendersky <eliben@google.com> | 2012-11-20 23:44:22 +0000 |
---|---|---|
committer | Eli Bendersky <eliben@google.com> | 2012-11-20 23:44:22 +0000 |
commit | a631ea96e6d4c03ab678ea747247aaa778f4ec91 (patch) | |
tree | d8dad65e16cfaa0094d35d7801c55b6ea9ffb844 /test/tools | |
parent | 8c67c03b0cd4bf2421d21e588d131bb0d2023695 (diff) | |
download | external_llvm-a631ea96e6d4c03ab678ea747247aaa778f4ec91.zip external_llvm-a631ea96e6d4c03ab678ea747247aaa778f4ec91.tar.gz external_llvm-a631ea96e6d4c03ab678ea747247aaa778f4ec91.tar.bz2 |
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
Diffstat (limited to 'test/tools')
-rw-r--r-- | test/tools/llvm-objdump/disassembly-show-raw.s | 15 | ||||
-rw-r--r-- | test/tools/llvm-objdump/lit.local.cfg | 6 |
2 files changed, 21 insertions, 0 deletions
diff --git a/test/tools/llvm-objdump/disassembly-show-raw.s b/test/tools/llvm-objdump/disassembly-show-raw.s new file mode 100644 index 0000000..32fcad4 --- /dev/null +++ b/test/tools/llvm-objdump/disassembly-show-raw.s @@ -0,0 +1,15 @@ +// RUN: llvm-mc -filetype=obj -arch=x86 %s | llvm-objdump -d - \ +// RUN: | FileCheck %s -check-prefix=WITHRAW +// RUN: llvm-mc -filetype=obj -arch=x86 %s | llvm-objdump -d -no-show-raw-insn - \ +// RUN: | FileCheck %s -check-prefix=NORAW + +// Expect to find the raw incoding when run with raw output (default), but not +// when run explicitly with -no-show-raw-insn + +movl 0, %eax +// WITHRAW: a1 00 00 00 00 movl + +// NORAW: movl +// NORAW-NOT: a1 00 + + diff --git a/test/tools/llvm-objdump/lit.local.cfg b/test/tools/llvm-objdump/lit.local.cfg new file mode 100644 index 0000000..56bf008 --- /dev/null +++ b/test/tools/llvm-objdump/lit.local.cfg @@ -0,0 +1,6 @@ +config.suffixes = ['.ll', '.s'] + +targets = set(config.root.targets_to_build.split()) +if not 'X86' in targets: + config.unsupported = True + |