test/MC: Introduce MC/MachO/ARM, and relocate relax-thumb2-branches.s into it.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 6 Dec 2011 06:48:26 +0000 (06:48 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Tue, 6 Dec 2011 06:48:26 +0000 (06:48 +0000)
FIXME: Restore more other arch-dependent MachO tests. (eg. r126401 and r133856)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@145925 91177308-0d34-0410-b5e6-96231b3b80d8

test/MC/ARM/relax-thumb2-branches.s [deleted file]
test/MC/MachO/ARM/dg.exp [new file with mode: 0644]
test/MC/MachO/ARM/relax-thumb2-branches.s [new file with mode: 0644]

diff --git a/test/MC/ARM/relax-thumb2-branches.s b/test/MC/ARM/relax-thumb2-branches.s
deleted file mode 100644 (file)
index 7916d42..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-@ RUN: llvm-mc -triple=thumbv7-apple-darwin -show-encoding %s -filetype=obj -o - | macho-dump --dump-section-data | FileCheck %s
-
-        ble Lfoo        @ wide encoding
-
-        .space 258
-Lfoo:
-        nop
-
-        ble Lbaz        @ narrow encoding
-        .space 256
-Lbaz:
-
-@ CHECK: '_section_data', '40f38180
-@ CHECK: 000000bf 7fdd
diff --git a/test/MC/MachO/ARM/dg.exp b/test/MC/MachO/ARM/dg.exp
new file mode 100644 (file)
index 0000000..055fa25
--- /dev/null
@@ -0,0 +1,5 @@
+load_lib llvm.exp
+
+if { [llvm_supports_target ARM] } {
+  RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp,s}]]
+}
diff --git a/test/MC/MachO/ARM/relax-thumb2-branches.s b/test/MC/MachO/ARM/relax-thumb2-branches.s
new file mode 100644 (file)
index 0000000..7916d42
--- /dev/null
@@ -0,0 +1,14 @@
+@ RUN: llvm-mc -triple=thumbv7-apple-darwin -show-encoding %s -filetype=obj -o - | macho-dump --dump-section-data | FileCheck %s
+
+        ble Lfoo        @ wide encoding
+
+        .space 258
+Lfoo:
+        nop
+
+        ble Lbaz        @ narrow encoding
+        .space 256
+Lbaz:
+
+@ CHECK: '_section_data', '40f38180
+@ CHECK: 000000bf 7fdd