[PATCH] D10897: Reworked the test part of r241149 "Fix PR23872: Integrated assembler error message when using .type directive with @ in AArch32 assembly."

Gabor Ballabas gaborb at inf.u-szeged.hu
Thu Jul 2 07:41:31 PDT 2015


enefaim created this revision.
enefaim added reviewers: chapuni, richard.barton.arm, rengolin, kristof.beyls.
enefaim added a subscriber: llvm-commits-list.
enefaim set the repository for this revision to rL LLVM.

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 of r241149: http://reviews.llvm.org/D10651

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D10897

Files:
  test/MC/ARM/directive-type-diagnostics.s
  test/MC/COFF/directive-type-diagnostics.s
  test/MC/MachO/ARM/directive-type-diagnostics.s

Index: test/MC/MachO/ARM/directive-type-diagnostics.s
===================================================================
--- /dev/null
+++ 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_<TYPE_IN_UPPER_CASE>, '#<type>', '%<type>' or "<type>"
+// CHECK: .type symbol 32
+// CHECK:              ^
+
Index: test/MC/COFF/directive-type-diagnostics.s
===================================================================
--- /dev/null
+++ test/MC/COFF/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_<TYPE_IN_UPPER_CASE>, '#<type>', '%<type>' or "<type>"
+// CHECK: .type symbol 32
+// CHECK:              ^
+
Index: test/MC/ARM/directive-type-diagnostics.s
===================================================================
--- /dev/null
+++ 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_<TYPE_IN_UPPER_CASE>, '#<type>', '%<type>' or "<type>"
+// CHECK: .type symbol 32
+// CHECK:              ^
+


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10897.28944.patch
Type: text/x-patch
Size: 2174 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150702/2008eb39/attachment.bin>


More information about the llvm-commits mailing list