From 4e0f6008b9d8c0d21bea2273a47a1443643a991d Mon Sep 17 00:00:00 2001 From: Gabor Ballabas Date: Thu, 2 Jul 2015 16:53:23 +0000 Subject: [PATCH] Reworking the test part of r241149 The test part of r241149 has been reverted in r241451, due to misplaced test cases. This patch splits those test cases among the appropriate targets. Differential Revision: http://reviews.llvm.org/D10897 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@241283 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/ARM/directive-type-diagnostics.s | 10 ++++++++++ test/MC/COFF/ARM/directive-type-diagnostics.s | 10 ++++++++++ test/MC/COFF/ARM/lit.local.cfg | 3 +++ test/MC/MachO/ARM/directive-type-diagnostics.s | 10 ++++++++++ 4 files changed, 33 insertions(+) create mode 100644 test/MC/ARM/directive-type-diagnostics.s create mode 100644 test/MC/COFF/ARM/directive-type-diagnostics.s create mode 100644 test/MC/COFF/ARM/lit.local.cfg create mode 100644 test/MC/MachO/ARM/directive-type-diagnostics.s diff --git a/test/MC/ARM/directive-type-diagnostics.s b/test/MC/ARM/directive-type-diagnostics.s new file mode 100644 index 00000000000..b166ffd06aa --- /dev/null +++ b/test/MC/ARM/directive-type-diagnostics.s @@ -0,0 +1,10 @@ +// RUN: not llvm-mc -triple arm-elf -filetype asm -o /dev/null %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple armeb-elf -filetype asm -o /dev/null %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple thumb-elf -filetype asm -o /dev/null %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple thumbeb-elf -filetype asm -o /dev/null %s 2>&1 | FileCheck %s + + .type symbol 32 +// CHECK: error: expected STT_, '#', '%' or "" +// CHECK: .type symbol 32 +// CHECK: ^ + diff --git a/test/MC/COFF/ARM/directive-type-diagnostics.s b/test/MC/COFF/ARM/directive-type-diagnostics.s new file mode 100644 index 00000000000..f8a52cd43e4 --- /dev/null +++ b/test/MC/COFF/ARM/directive-type-diagnostics.s @@ -0,0 +1,10 @@ +// RUN: not llvm-mc -triple arm-coff -filetype asm -o /dev/null %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple armeb-coff -filetype asm -o /dev/null %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple thumb-coff -filetype asm -o /dev/null %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple thumbeb-coff -filetype asm -o /dev/null %s 2>&1 | FileCheck %s + + .type symbol 32 +// CHECK: error: expected STT_, '#', '%' or "" +// CHECK: .type symbol 32 +// CHECK: ^ + diff --git a/test/MC/COFF/ARM/lit.local.cfg b/test/MC/COFF/ARM/lit.local.cfg new file mode 100644 index 00000000000..98c6700c209 --- /dev/null +++ b/test/MC/COFF/ARM/lit.local.cfg @@ -0,0 +1,3 @@ +if not 'ARM' in config.root.targets: + config.unsupported = True + diff --git a/test/MC/MachO/ARM/directive-type-diagnostics.s b/test/MC/MachO/ARM/directive-type-diagnostics.s new file mode 100644 index 00000000000..f5f9b45b664 --- /dev/null +++ b/test/MC/MachO/ARM/directive-type-diagnostics.s @@ -0,0 +1,10 @@ +// RUN: not llvm-mc -triple arm-apple -filetype asm -o /dev/null %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple armeb-apple -filetype asm -o /dev/null %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple thumb-apple -filetype asm -o /dev/null %s 2>&1 | FileCheck %s +// RUN: not llvm-mc -triple thumbeb-apple -filetype asm -o /dev/null %s 2>&1 | FileCheck %s + + .type symbol 32 +// CHECK: error: expected STT_, '#', '%' or "" +// CHECK: .type symbol 32 +// CHECK: ^ + -- 2.34.1