[llvm] r241283 - Reworking the test part of r241149
Gabor Ballabas
gaborb at inf.u-szeged.hu
Thu Jul 2 09:53:23 PDT 2015
Author: gaborb
Date: Thu Jul 2 11:53:23 2015
New Revision: 241283
URL: http://llvm.org/viewvc/llvm-project?rev=241283&view=rev
Log:
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
Added:
llvm/trunk/test/MC/ARM/directive-type-diagnostics.s
llvm/trunk/test/MC/COFF/ARM/
llvm/trunk/test/MC/COFF/ARM/directive-type-diagnostics.s
llvm/trunk/test/MC/COFF/ARM/lit.local.cfg
llvm/trunk/test/MC/MachO/ARM/directive-type-diagnostics.s
Added: llvm/trunk/test/MC/ARM/directive-type-diagnostics.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/ARM/directive-type-diagnostics.s?rev=241283&view=auto
==============================================================================
--- llvm/trunk/test/MC/ARM/directive-type-diagnostics.s (added)
+++ llvm/trunk/test/MC/ARM/directive-type-diagnostics.s Thu Jul 2 11:53:23 2015
@@ -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_<TYPE_IN_UPPER_CASE>, '#<type>', '%<type>' or "<type>"
+// CHECK: .type symbol 32
+// CHECK: ^
+
Added: llvm/trunk/test/MC/COFF/ARM/directive-type-diagnostics.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/COFF/ARM/directive-type-diagnostics.s?rev=241283&view=auto
==============================================================================
--- llvm/trunk/test/MC/COFF/ARM/directive-type-diagnostics.s (added)
+++ llvm/trunk/test/MC/COFF/ARM/directive-type-diagnostics.s Thu Jul 2 11:53:23 2015
@@ -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_<TYPE_IN_UPPER_CASE>, '#<type>', '%<type>' or "<type>"
+// CHECK: .type symbol 32
+// CHECK: ^
+
Added: llvm/trunk/test/MC/COFF/ARM/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/COFF/ARM/lit.local.cfg?rev=241283&view=auto
==============================================================================
--- llvm/trunk/test/MC/COFF/ARM/lit.local.cfg (added)
+++ llvm/trunk/test/MC/COFF/ARM/lit.local.cfg Thu Jul 2 11:53:23 2015
@@ -0,0 +1,3 @@
+if not 'ARM' in config.root.targets:
+ config.unsupported = True
+
Added: llvm/trunk/test/MC/MachO/ARM/directive-type-diagnostics.s
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/MachO/ARM/directive-type-diagnostics.s?rev=241283&view=auto
==============================================================================
--- llvm/trunk/test/MC/MachO/ARM/directive-type-diagnostics.s (added)
+++ llvm/trunk/test/MC/MachO/ARM/directive-type-diagnostics.s Thu Jul 2 11:53:23 2015
@@ -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_<TYPE_IN_UPPER_CASE>, '#<type>', '%<type>' or "<type>"
+// CHECK: .type symbol 32
+// CHECK: ^
+
More information about the llvm-commits
mailing list