From: Duncan P. N. Exon Smith Date: Thu, 11 Dec 2014 01:34:46 +0000 (+0000) Subject: IR: Add 'invalid-' to test names for invalid assembly X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=a40cc0b50cc417a3030567a8d50910eb68d40eb1;p=oota-llvm.git IR: Add 'invalid-' to test names for invalid assembly 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 --- diff --git a/test/Assembler/functionlocal-metadata-attachments.ll b/test/Assembler/functionlocal-metadata-attachments.ll deleted file mode 100644 index 20cb0a9218c..00000000000 --- a/test/Assembler/functionlocal-metadata-attachments.ll +++ /dev/null @@ -1,7 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -define void @foo(i32 %v) { -entry: -; CHECK: :[[@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 index 81337db39fe..00000000000 --- a/test/Assembler/functionlocal-metadata-complex-1.ll +++ /dev/null @@ -1,10 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -define void @foo(i32 %v) { -entry: -; CHECK: :[[@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 index 15a4412c535..00000000000 --- a/test/Assembler/functionlocal-metadata-complex-2.ll +++ /dev/null @@ -1,10 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -define void @foo(i32 %v) { -entry: -; CHECK: :[[@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 index 647f93ecabe..00000000000 --- a/test/Assembler/functionlocal-metadata-complex-3.ll +++ /dev/null @@ -1,10 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -define void @foo(i32 %v) { -entry: -; CHECK: :[[@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 index 00000000000..20cb0a9218c --- /dev/null +++ b/test/Assembler/invalid-metadata-function-local-attachments.ll @@ -0,0 +1,7 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +define void @foo(i32 %v) { +entry: +; CHECK: :[[@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 index 00000000000..81337db39fe --- /dev/null +++ b/test/Assembler/invalid-metadata-function-local-complex-1.ll @@ -0,0 +1,10 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +define void @foo(i32 %v) { +entry: +; CHECK: :[[@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 index 00000000000..15a4412c535 --- /dev/null +++ b/test/Assembler/invalid-metadata-function-local-complex-2.ll @@ -0,0 +1,10 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +define void @foo(i32 %v) { +entry: +; CHECK: :[[@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 index 00000000000..647f93ecabe --- /dev/null +++ b/test/Assembler/invalid-metadata-function-local-complex-3.ll @@ -0,0 +1,10 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +define void @foo(i32 %v) { +entry: +; CHECK: :[[@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)