From: Saleem Abdulrasool Date: Sun, 8 Jun 2014 01:04:05 +0000 (+0000) Subject: test: move some tests into ARM directory X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=e231836fe4732635c7875d20ffe10f1018946f2f;p=oota-llvm.git test: move some tests into ARM directory Rather than requiring ARM support for the ELF tests (which is odd), move the tests that require ARM into a subdirectory to use lit to disable them if the support is not present. Play this game to prevent disabling the ELF tests on the Windows build bots as they have caught issues in the past with interactions between various platforms. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210408 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/MC/ELF/ARM/gnu-type-hash-diagnostics.s b/test/MC/ELF/ARM/gnu-type-hash-diagnostics.s new file mode 100644 index 00000000000..eb364755c4d --- /dev/null +++ b/test/MC/ELF/ARM/gnu-type-hash-diagnostics.s @@ -0,0 +1,9 @@ +@ RUN: not llvm-mc -triple arm-elf -filetype asm -o /dev/null %s 2>&1 | FileCheck %s + + .syntax unified + + .type TYPE #32 +// CHECK: error: expected symbol type in directive +// CHECK: .type TYPE #32 +// CHECK: ^ + diff --git a/test/MC/ELF/ARM/gnu-type-hash.s b/test/MC/ELF/ARM/gnu-type-hash.s new file mode 100644 index 00000000000..ae5c47c567c --- /dev/null +++ b/test/MC/ELF/ARM/gnu-type-hash.s @@ -0,0 +1,16 @@ +@ RUN: llvm-mc -triple arm-elf -filetype asm -o - %s | FileCheck %s + + .syntax unified + + .type TYPE #STT_FUNC +// CHECK: .type TYPE,%function + + .type type #function +// CHECK: .type type,%function + + .type comma_TYPE, #STT_FUNC +// CHECK: .type comma_TYPE,%function + + .type comma_type, #function +// CHECK: .type comma_type,%function + diff --git a/test/MC/ELF/ARM/lit.local.cfg b/test/MC/ELF/ARM/lit.local.cfg new file mode 100644 index 00000000000..ba8a4fbfc20 --- /dev/null +++ b/test/MC/ELF/ARM/lit.local.cfg @@ -0,0 +1,4 @@ +targets = set(config.root.targets_to_build.split()) +if not 'ARM' in targets: + config.unsupported = True + diff --git a/test/MC/ELF/gnu-type-hash-diagnostics.s b/test/MC/ELF/gnu-type-hash-diagnostics.s deleted file mode 100644 index eb364755c4d..00000000000 --- a/test/MC/ELF/gnu-type-hash-diagnostics.s +++ /dev/null @@ -1,9 +0,0 @@ -@ RUN: not llvm-mc -triple arm-elf -filetype asm -o /dev/null %s 2>&1 | FileCheck %s - - .syntax unified - - .type TYPE #32 -// CHECK: error: expected symbol type in directive -// CHECK: .type TYPE #32 -// CHECK: ^ - diff --git a/test/MC/ELF/gnu-type-hash.s b/test/MC/ELF/gnu-type-hash.s deleted file mode 100644 index ae5c47c567c..00000000000 --- a/test/MC/ELF/gnu-type-hash.s +++ /dev/null @@ -1,16 +0,0 @@ -@ RUN: llvm-mc -triple arm-elf -filetype asm -o - %s | FileCheck %s - - .syntax unified - - .type TYPE #STT_FUNC -// CHECK: .type TYPE,%function - - .type type #function -// CHECK: .type type,%function - - .type comma_TYPE, #STT_FUNC -// CHECK: .type comma_TYPE,%function - - .type comma_type, #function -// CHECK: .type comma_type,%function -