From: NAKAMURA Takumi Date: Tue, 6 Dec 2011 06:48:26 +0000 (+0000) Subject: test/MC: Introduce MC/MachO/ARM, and relocate relax-thumb2-branches.s into it. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=18851edbc4666a8c8695b294e8bdfabbe157c086;p=oota-llvm.git test/MC: Introduce MC/MachO/ARM, and relocate relax-thumb2-branches.s into it. 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 --- diff --git a/test/MC/ARM/relax-thumb2-branches.s b/test/MC/ARM/relax-thumb2-branches.s deleted file mode 100644 index 7916d424078..00000000000 --- a/test/MC/ARM/relax-thumb2-branches.s +++ /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 index 00000000000..055fa2507d3 --- /dev/null +++ b/test/MC/MachO/ARM/dg.exp @@ -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 index 00000000000..7916d424078 --- /dev/null +++ b/test/MC/MachO/ARM/relax-thumb2-branches.s @@ -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