[llvm-commits] [llvm] r168397 - in /llvm/trunk/test/tools: ./ llvm-objdump/ llvm-objdump/disassembly-show-raw.s llvm-objdump/lit.local.cfg
Eli Bendersky
eliben at google.com
Tue Nov 20 15:44:22 PST 2012
Author: eliben
Date: Tue Nov 20 17:44:22 2012
New Revision: 168397
URL: http://llvm.org/viewvc/llvm-project?rev=168397&view=rev
Log:
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.
Added:
llvm/trunk/test/tools/
llvm/trunk/test/tools/llvm-objdump/
llvm/trunk/test/tools/llvm-objdump/disassembly-show-raw.s
llvm/trunk/test/tools/llvm-objdump/lit.local.cfg
Added: llvm/trunk/test/tools/llvm-objdump/disassembly-show-raw.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objdump/disassembly-show-raw.s?rev=168397&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objdump/disassembly-show-raw.s (added)
+++ llvm/trunk/test/tools/llvm-objdump/disassembly-show-raw.s Tue Nov 20 17:44:22 2012
@@ -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
+
+
Added: llvm/trunk/test/tools/llvm-objdump/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objdump/lit.local.cfg?rev=168397&view=auto
==============================================================================
--- llvm/trunk/test/tools/llvm-objdump/lit.local.cfg (added)
+++ llvm/trunk/test/tools/llvm-objdump/lit.local.cfg Tue Nov 20 17:44:22 2012
@@ -0,0 +1,6 @@
+config.suffixes = ['.ll', '.s']
+
+targets = set(config.root.targets_to_build.split())
+if not 'X86' in targets:
+ config.unsupported = True
+
More information about the llvm-commits
mailing list