IR: Add 'invalid-' to test names for invalid assembly
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 11 Dec 2014 01:34:46 +0000 (01:34 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Thu, 11 Dec 2014 01:34:46 +0000 (01:34 +0000)
Take the opportunity to sort these by `metadata`.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@223993 91177308-0d34-0410-b5e6-96231b3b80d8

test/Assembler/functionlocal-metadata-attachments.ll [deleted file]
test/Assembler/functionlocal-metadata-complex-1.ll [deleted file]
test/Assembler/functionlocal-metadata-complex-2.ll [deleted file]
test/Assembler/functionlocal-metadata-complex-3.ll [deleted file]
test/Assembler/invalid-metadata-function-local-attachments.ll [new file with mode: 0644]
test/Assembler/invalid-metadata-function-local-complex-1.ll [new file with mode: 0644]
test/Assembler/invalid-metadata-function-local-complex-2.ll [new file with mode: 0644]
test/Assembler/invalid-metadata-function-local-complex-3.ll [new file with mode: 0644]

diff --git a/test/Assembler/functionlocal-metadata-attachments.ll b/test/Assembler/functionlocal-metadata-attachments.ll
deleted file mode 100644 (file)
index 20cb0a9..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
-
-define void @foo(i32 %v) {
-entry:
-; CHECK: <stdin>:[[@LINE+1]]:{{[0-9]+}}: error: invalid use of function-local name
-  ret void, !foo !{i32 %v}
-}
diff --git a/test/Assembler/functionlocal-metadata-complex-1.ll b/test/Assembler/functionlocal-metadata-complex-1.ll
deleted file mode 100644 (file)
index 81337db..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
-
-define void @foo(i32 %v) {
-entry:
-; CHECK: <stdin>:[[@LINE+1]]:{{[0-9]+}}: error: unexpected operand after function-local metadata
-  call void @llvm.bar(metadata !{i32 %v, i32 0})
-  ret void
-}
-
-declare void @llvm.bar(metadata)
diff --git a/test/Assembler/functionlocal-metadata-complex-2.ll b/test/Assembler/functionlocal-metadata-complex-2.ll
deleted file mode 100644 (file)
index 15a4412..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
-
-define void @foo(i32 %v) {
-entry:
-; CHECK: <stdin>:[[@LINE+1]]:{{[0-9]+}}: error: unexpected function-local metadata
-  call void @llvm.bar(metadata !{i32 0, i32 %v})
-  ret void
-}
-
-declare void @llvm.bar(metadata)
diff --git a/test/Assembler/functionlocal-metadata-complex-3.ll b/test/Assembler/functionlocal-metadata-complex-3.ll
deleted file mode 100644 (file)
index 647f93e..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
-; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
-
-define void @foo(i32 %v) {
-entry:
-; CHECK: <stdin>:[[@LINE+1]]:{{[0-9]+}}: error: invalid use of function-local name
-  call void @llvm.bar(metadata !{metadata !{i32 %v}})
-  ret void
-}
-
-declare void @llvm.bar(metadata)
diff --git a/test/Assembler/invalid-metadata-function-local-attachments.ll b/test/Assembler/invalid-metadata-function-local-attachments.ll
new file mode 100644 (file)
index 0000000..20cb0a9
--- /dev/null
@@ -0,0 +1,7 @@
+; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
+
+define void @foo(i32 %v) {
+entry:
+; CHECK: <stdin>:[[@LINE+1]]:{{[0-9]+}}: error: invalid use of function-local name
+  ret void, !foo !{i32 %v}
+}
diff --git a/test/Assembler/invalid-metadata-function-local-complex-1.ll b/test/Assembler/invalid-metadata-function-local-complex-1.ll
new file mode 100644 (file)
index 0000000..81337db
--- /dev/null
@@ -0,0 +1,10 @@
+; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
+
+define void @foo(i32 %v) {
+entry:
+; CHECK: <stdin>:[[@LINE+1]]:{{[0-9]+}}: error: unexpected operand after function-local metadata
+  call void @llvm.bar(metadata !{i32 %v, i32 0})
+  ret void
+}
+
+declare void @llvm.bar(metadata)
diff --git a/test/Assembler/invalid-metadata-function-local-complex-2.ll b/test/Assembler/invalid-metadata-function-local-complex-2.ll
new file mode 100644 (file)
index 0000000..15a4412
--- /dev/null
@@ -0,0 +1,10 @@
+; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
+
+define void @foo(i32 %v) {
+entry:
+; CHECK: <stdin>:[[@LINE+1]]:{{[0-9]+}}: error: unexpected function-local metadata
+  call void @llvm.bar(metadata !{i32 0, i32 %v})
+  ret void
+}
+
+declare void @llvm.bar(metadata)
diff --git a/test/Assembler/invalid-metadata-function-local-complex-3.ll b/test/Assembler/invalid-metadata-function-local-complex-3.ll
new file mode 100644 (file)
index 0000000..647f93e
--- /dev/null
@@ -0,0 +1,10 @@
+; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s
+
+define void @foo(i32 %v) {
+entry:
+; CHECK: <stdin>:[[@LINE+1]]:{{[0-9]+}}: error: invalid use of function-local name
+  call void @llvm.bar(metadata !{metadata !{i32 %v}})
+  ret void
+}
+
+declare void @llvm.bar(metadata)