llvm/test/tools/llvm-objdump: Reorganize target-dependent some tests.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 7 Aug 2014 17:17:19 +0000 (17:17 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Thu, 7 Aug 2014 17:17:19 +0000 (17:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215122 91177308-0d34-0410-b5e6-96231b3b80d8

15 files changed:
test/tools/llvm-objdump/ARM/lit.local.cfg [new file with mode: 0644]
test/tools/llvm-objdump/ARM/macho-mattr-arm.test [new file with mode: 0644]
test/tools/llvm-objdump/ARM/macho-mcpu-arm.test [new file with mode: 0644]
test/tools/llvm-objdump/Inputs/out-of-section-sym.elf-i386 [deleted file]
test/tools/llvm-objdump/Inputs/trivial.obj.elf-i386 [deleted file]
test/tools/llvm-objdump/X86/Inputs/out-of-section-sym.elf-i386 [new file with mode: 0644]
test/tools/llvm-objdump/X86/Inputs/trivial.obj.elf-i386 [new file with mode: 0644]
test/tools/llvm-objdump/X86/disassembly-show-raw.test [new file with mode: 0644]
test/tools/llvm-objdump/X86/lit.local.cfg [new file with mode: 0644]
test/tools/llvm-objdump/X86/out-of-section-sym.test [new file with mode: 0644]
test/tools/llvm-objdump/disassembly-show-raw.test [deleted file]
test/tools/llvm-objdump/lit.local.cfg [deleted file]
test/tools/llvm-objdump/macho-mattr-arm.test [deleted file]
test/tools/llvm-objdump/macho-mcpu-arm.test [deleted file]
test/tools/llvm-objdump/out-of-section-sym.test [deleted file]

diff --git a/test/tools/llvm-objdump/ARM/lit.local.cfg b/test/tools/llvm-objdump/ARM/lit.local.cfg
new file mode 100644 (file)
index 0000000..236e1d3
--- /dev/null
@@ -0,0 +1,2 @@
+if not 'ARM' in config.root.targets:
+    config.unsupported = True
diff --git a/test/tools/llvm-objdump/ARM/macho-mattr-arm.test b/test/tools/llvm-objdump/ARM/macho-mattr-arm.test
new file mode 100644 (file)
index 0000000..1b17146
--- /dev/null
@@ -0,0 +1,5 @@
+@ RUN: llvm-mc < %s -triple armv8-apple-darwin10 -mattr=+fp-armv8 -filetype=obj -o - | llvm-objdump -d -m -mattr=+fp-armv8 - | FileCheck %s
+
+vcvtt.f64.f16 d3, s1
+
+@ CHECK: e0 3b b2 ee vcvtt.f64.f16 d3, s1
diff --git a/test/tools/llvm-objdump/ARM/macho-mcpu-arm.test b/test/tools/llvm-objdump/ARM/macho-mcpu-arm.test
new file mode 100644 (file)
index 0000000..7a3432d
--- /dev/null
@@ -0,0 +1,10 @@
+@ RUN: llvm-mc < %s -triple thumbv7-apple-darwin -mcpu=cortex-a7 -filetype=obj | llvm-objdump -triple thumbv7-apple-darwin10 -m -d -mcpu=cortex-a7 - | FileCheck %s
+
+.thumb
+.thumb_func _t
+_t:
+sdiv r1, r2, r3
+udiv r1, r2, r3
+
+@ CHECK: 92 fb f3 f1 sdiv r1, r2, r3
+@ CHECK: b2 fb f3 f1 udiv r1, r2, r3
diff --git a/test/tools/llvm-objdump/Inputs/out-of-section-sym.elf-i386 b/test/tools/llvm-objdump/Inputs/out-of-section-sym.elf-i386
deleted file mode 100644 (file)
index 4c71584..0000000
Binary files a/test/tools/llvm-objdump/Inputs/out-of-section-sym.elf-i386 and /dev/null differ
diff --git a/test/tools/llvm-objdump/Inputs/trivial.obj.elf-i386 b/test/tools/llvm-objdump/Inputs/trivial.obj.elf-i386
deleted file mode 100644 (file)
index fdc4874..0000000
Binary files a/test/tools/llvm-objdump/Inputs/trivial.obj.elf-i386 and /dev/null differ
diff --git a/test/tools/llvm-objdump/X86/Inputs/out-of-section-sym.elf-i386 b/test/tools/llvm-objdump/X86/Inputs/out-of-section-sym.elf-i386
new file mode 100644 (file)
index 0000000..4c71584
Binary files /dev/null and b/test/tools/llvm-objdump/X86/Inputs/out-of-section-sym.elf-i386 differ
diff --git a/test/tools/llvm-objdump/X86/Inputs/trivial.obj.elf-i386 b/test/tools/llvm-objdump/X86/Inputs/trivial.obj.elf-i386
new file mode 100644 (file)
index 0000000..fdc4874
Binary files /dev/null and b/test/tools/llvm-objdump/X86/Inputs/trivial.obj.elf-i386 differ
diff --git a/test/tools/llvm-objdump/X86/disassembly-show-raw.test b/test/tools/llvm-objdump/X86/disassembly-show-raw.test
new file mode 100644 (file)
index 0000000..e9956a5
--- /dev/null
@@ -0,0 +1,14 @@
+// RUN: llvm-objdump -d %p/Inputs/trivial.obj.elf-i386 \
+// RUN:     | FileCheck %s -check-prefix=WITHRAW
+// RUN: llvm-objdump -d -no-show-raw-insn %p/Inputs/trivial.obj.elf-i386 \
+// 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
+
+WITHRAW: a1 00 00 00 00 movl
+
+NORAW: movl
+NORAW-NOT: a1 00
+
+
diff --git a/test/tools/llvm-objdump/X86/lit.local.cfg b/test/tools/llvm-objdump/X86/lit.local.cfg
new file mode 100644 (file)
index 0000000..c8625f4
--- /dev/null
@@ -0,0 +1,2 @@
+if not 'X86' in config.root.targets:
+    config.unsupported = True
diff --git a/test/tools/llvm-objdump/X86/out-of-section-sym.test b/test/tools/llvm-objdump/X86/out-of-section-sym.test
new file mode 100644 (file)
index 0000000..f70dce6
--- /dev/null
@@ -0,0 +1,13 @@
+// Check that llvm-objdump does not attempt to disassemble symbols outside
+// of section boundaries.
+// RUN: llvm-objdump -d -t %p/Inputs/out-of-section-sym.elf-i386 | FileCheck %s
+
+CHECK: Disassembly of section .text:
+CHECK-NEXT: _start:
+CHECK-NEXT:   10:  c3  retl
+CHECK-NEXT: SYMBOL TABLE:
+CHECK-NEXT: 00000000         *UND*  00000000
+CHECK-NEXT: 00000010 l    d  .text  00000000 .text
+CHECK-NEXT: 00000010         .text  00000000 _start
+CHECK-NEXT: 00000020         .text  00000000 _fdata
+CHECK-NEXT: 00000010         .text  00000000 _ftext
diff --git a/test/tools/llvm-objdump/disassembly-show-raw.test b/test/tools/llvm-objdump/disassembly-show-raw.test
deleted file mode 100644 (file)
index e9956a5..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-// RUN: llvm-objdump -d %p/Inputs/trivial.obj.elf-i386 \
-// RUN:     | FileCheck %s -check-prefix=WITHRAW
-// RUN: llvm-objdump -d -no-show-raw-insn %p/Inputs/trivial.obj.elf-i386 \
-// 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
-
-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
deleted file mode 100644 (file)
index c8625f4..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-if not 'X86' in config.root.targets:
-    config.unsupported = True
diff --git a/test/tools/llvm-objdump/macho-mattr-arm.test b/test/tools/llvm-objdump/macho-mattr-arm.test
deleted file mode 100644 (file)
index 1b17146..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-@ RUN: llvm-mc < %s -triple armv8-apple-darwin10 -mattr=+fp-armv8 -filetype=obj -o - | llvm-objdump -d -m -mattr=+fp-armv8 - | FileCheck %s
-
-vcvtt.f64.f16 d3, s1
-
-@ CHECK: e0 3b b2 ee vcvtt.f64.f16 d3, s1
diff --git a/test/tools/llvm-objdump/macho-mcpu-arm.test b/test/tools/llvm-objdump/macho-mcpu-arm.test
deleted file mode 100644 (file)
index 7a3432d..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-@ RUN: llvm-mc < %s -triple thumbv7-apple-darwin -mcpu=cortex-a7 -filetype=obj | llvm-objdump -triple thumbv7-apple-darwin10 -m -d -mcpu=cortex-a7 - | FileCheck %s
-
-.thumb
-.thumb_func _t
-_t:
-sdiv r1, r2, r3
-udiv r1, r2, r3
-
-@ CHECK: 92 fb f3 f1 sdiv r1, r2, r3
-@ CHECK: b2 fb f3 f1 udiv r1, r2, r3
diff --git a/test/tools/llvm-objdump/out-of-section-sym.test b/test/tools/llvm-objdump/out-of-section-sym.test
deleted file mode 100644 (file)
index f70dce6..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-// Check that llvm-objdump does not attempt to disassemble symbols outside
-// of section boundaries.
-// RUN: llvm-objdump -d -t %p/Inputs/out-of-section-sym.elf-i386 | FileCheck %s
-
-CHECK: Disassembly of section .text:
-CHECK-NEXT: _start:
-CHECK-NEXT:   10:  c3  retl
-CHECK-NEXT: SYMBOL TABLE:
-CHECK-NEXT: 00000000         *UND*  00000000
-CHECK-NEXT: 00000010 l    d  .text  00000000 .text
-CHECK-NEXT: 00000010         .text  00000000 _start
-CHECK-NEXT: 00000020         .text  00000000 _fdata
-CHECK-NEXT: 00000010         .text  00000000 _ftext