mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-22 10:42:39 +01:00
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. llvm-svn: 168397
This commit is contained in:
parent
474c57d583
commit
386b394a4c
15
test/tools/llvm-objdump/disassembly-show-raw.s
Normal file
15
test/tools/llvm-objdump/disassembly-show-raw.s
Normal file
@ -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
|
||||
|
||||
|
6
test/tools/llvm-objdump/lit.local.cfg
Normal file
6
test/tools/llvm-objdump/lit.local.cfg
Normal file
@ -0,0 +1,6 @@
|
||||
config.suffixes = ['.ll', '.s']
|
||||
|
||||
targets = set(config.root.targets_to_build.split())
|
||||
if not 'X86' in targets:
|
||||
config.unsupported = True
|
||||
|
Loading…
Reference in New Issue
Block a user