From: Duncan P. N. Exon Smith Date: Tue, 2 Jun 2015 17:13:25 +0000 (+0000) Subject: DebugInfo: Rename testcases from MD* to DI*, NFC X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=31ed6b767b9a595f88d6999a5c733d1ff0f94e66;p=oota-llvm.git DebugInfo: Rename testcases from MD* to DI*, NFC As a follow-up to r236120, rename testcases to match the new names. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238853 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Assembler/dicompileunit.ll b/test/Assembler/dicompileunit.ll new file mode 100644 index 00000000000..dc136f0b83e --- /dev/null +++ b/test/Assembler/dicompileunit.ll @@ -0,0 +1,31 @@ +; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s + +; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !7, !8, !8} +!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9, !10} + +!0 = distinct !{} +!1 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") +!2 = distinct !{} +!3 = distinct !{} +!4 = distinct !{} +!5 = distinct !{} +!6 = distinct !{} + +; CHECK: !7 = !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", isOptimized: true, flags: "-O2", runtimeVersion: 2, splitDebugFilename: "abc.debug", emissionKind: 3, enums: !2, retainedTypes: !3, subprograms: !4, globals: !5, imports: !6, dwoId: 42) +!7 = !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", + isOptimized: true, flags: "-O2", runtimeVersion: 2, + splitDebugFilename: "abc.debug", emissionKind: 3, + enums: !2, retainedTypes: !3, subprograms: !4, + globals: !5, imports: !6, dwoId: 42) +!8 = !DICompileUnit(language: 12, file: !1, producer: "clang", + isOptimized: true, flags: "-O2", runtimeVersion: 2, + splitDebugFilename: "abc.debug", emissionKind: 3, + enums: !2, retainedTypes: !3, subprograms: !4, + globals: !5, imports: !6, dwoId: 42) + +; CHECK: !8 = !DICompileUnit(language: DW_LANG_C99, file: !1, isOptimized: false, runtimeVersion: 0, emissionKind: 0) +!9 = !DICompileUnit(language: 12, file: !1, producer: "", + isOptimized: false, flags: "", runtimeVersion: 0, + splitDebugFilename: "", emissionKind: 0) +!10 = !DICompileUnit(language: 12, file: !1) diff --git a/test/Assembler/diexpression.ll b/test/Assembler/diexpression.ll new file mode 100644 index 00000000000..31be86cef2d --- /dev/null +++ b/test/Assembler/diexpression.ll @@ -0,0 +1,16 @@ +; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s + +; CHECK: !named = !{!0, !1, !2, !3, !4} +!named = !{!0, !1, !2, !3, !4} + +; CHECK: !0 = !DIExpression() +; CHECK-NEXT: !1 = !DIExpression(DW_OP_deref) +; CHECK-NEXT: !2 = !DIExpression(DW_OP_plus, 3) +; CHECK-NEXT: !3 = !DIExpression(DW_OP_bit_piece, 3, 7) +; CHECK-NEXT: !4 = !DIExpression(DW_OP_deref, DW_OP_plus, 3, DW_OP_bit_piece, 3, 7) +!0 = !DIExpression() +!1 = !DIExpression(DW_OP_deref) +!2 = !DIExpression(DW_OP_plus, 3) +!3 = !DIExpression(DW_OP_bit_piece, 3, 7) +!4 = !DIExpression(DW_OP_deref, DW_OP_plus, 3, DW_OP_bit_piece, 3, 7) diff --git a/test/Assembler/difile-escaped-chars.ll b/test/Assembler/difile-escaped-chars.ll new file mode 100644 index 00000000000..5900fdca061 --- /dev/null +++ b/test/Assembler/difile-escaped-chars.ll @@ -0,0 +1,9 @@ +; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s + +; Spot-check that metadata string fields are correctly escaped. + +!named = !{!0} + +; CHECK: !0 = !DIFile(filename: "\00\01\02\80\81\82\FD\FE\FF", directory: "/dir") +!0 = !DIFile(filename: "\00\01\02\80\81\82\FD\FE\FF", directory: "/dir") diff --git a/test/Assembler/diglobalvariable.ll b/test/Assembler/diglobalvariable.ll new file mode 100644 index 00000000000..0d027d310f6 --- /dev/null +++ b/test/Assembler/diglobalvariable.ll @@ -0,0 +1,27 @@ +; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s + +@foo = global i32 0 + +; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9} +!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9} + +!0 = !DIFile(filename: "scope.h", directory: "/path/to/dir") +!1 = distinct !{} +!2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") +!3 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) +!4 = distinct !{} + +; CHECK: !5 = !DIGlobalVariable(name: "foo", linkageName: "foo", scope: !0, file: !2, line: 7, type: !3, isLocal: true, isDefinition: false, variable: i32* @foo) +!5 = !DIGlobalVariable(name: "foo", linkageName: "foo", scope: !0, + file: !2, line: 7, type: !3, isLocal: true, + isDefinition: false, variable: i32* @foo) + +; CHECK: !6 = !DIGlobalVariable(name: "foo", scope: !0, isLocal: false, isDefinition: true) +!6 = !DIGlobalVariable(name: "foo", scope: !0) + +!7 = !DICompositeType(tag: DW_TAG_structure_type, name: "Class", size: 8, align: 8) +!8 = !DIDerivedType(tag: DW_TAG_member, name: "mem", flags: DIFlagStaticMember, scope: !7, baseType: !3) + +; CHECK: !9 = !DIGlobalVariable(name: "mem", scope: !0, isLocal: false, isDefinition: true, declaration: !8) +!9 = !DIGlobalVariable(name: "mem", scope: !0, declaration: !8) diff --git a/test/Assembler/diimportedentity.ll b/test/Assembler/diimportedentity.ll new file mode 100644 index 00000000000..929267e3b25 --- /dev/null +++ b/test/Assembler/diimportedentity.ll @@ -0,0 +1,20 @@ +; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s + +; CHECK: !named = !{!0, !1, !2, !3, !3} +!named = !{!0, !1, !2, !3, !4} + +; CHECK: !0 = !DISubprogram({{.*}}) +; CHECK-NEXT: !1 = !DICompositeType({{.*}}) +!0 = !DISubprogram(name: "foo") +!1 = !DICompositeType(tag: DW_TAG_structure_type, name: "Class", size: 32, align: 32) + +; CHECK-NEXT: !2 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "foo", scope: !0, entity: !1, line: 7) +!2 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "foo", scope: !0, + entity: !1, line: 7) + +; CHECK-NEXT: !3 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !0) +!3 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !0) +!4 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "", scope: !0, entity: null, + line: 0) + diff --git a/test/Assembler/dilexicalblock.ll b/test/Assembler/dilexicalblock.ll new file mode 100644 index 00000000000..2cab372384c --- /dev/null +++ b/test/Assembler/dilexicalblock.ll @@ -0,0 +1,25 @@ +; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s + +; CHECK: !named = !{!0, !1, !2, !3, !4, !4, !5, !6, !7, !7} +!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9} + +!0 = distinct !{} +!1 = !DISubprogram(name: "foo", scope: !2) +!2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") + +; CHECK: !3 = !DILexicalBlock(scope: !1, file: !2, line: 7, column: 35) +!3 = !DILexicalBlock(scope: !1, file: !2, line: 7, column: 35) + +; CHECK: !4 = !DILexicalBlock(scope: !1) +!4 = !DILexicalBlock(scope: !1) +!5 = !DILexicalBlock(scope: !1, file: null, line: 0, column: 0) + +; CHECK: !5 = !DILexicalBlockFile(scope: !3, file: !2, discriminator: 0) +; CHECK: !6 = !DILexicalBlockFile(scope: !3, file: !2, discriminator: 1) +!6 = !DILexicalBlockFile(scope: !3, file: !2, discriminator: 0) +!7 = !DILexicalBlockFile(scope: !3, file: !2, discriminator: 1) + +; CHECK: !7 = !DILexicalBlockFile(scope: !3, discriminator: 7) +!8 = !DILexicalBlockFile(scope: !3, discriminator: 7) +!9 = !DILexicalBlockFile(scope: !3, file: null, discriminator: 7) diff --git a/test/Assembler/dilocalvariable.ll b/test/Assembler/dilocalvariable.ll new file mode 100644 index 00000000000..312373ca862 --- /dev/null +++ b/test/Assembler/dilocalvariable.ll @@ -0,0 +1,26 @@ +; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s + +@foo = global i32 0 + +; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8} +!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8} + +!0 = distinct !DISubprogram() +!1 = distinct !{} +!2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") +!3 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) +!4 = !DILocation(scope: !0) + +; CHECK: !5 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "foo", arg: 3, scope: !0, file: !2, line: 7, type: !3, flags: DIFlagArtificial) +; CHECK: !6 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "foo", scope: !0, file: !2, line: 7, type: !3, flags: DIFlagArtificial) +!5 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "foo", arg: 3, + scope: !0, file: !2, line: 7, type: !3, + flags: DIFlagArtificial) +!6 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "foo", scope: !0, + file: !2, line: 7, type: !3, flags: DIFlagArtificial) + +; CHECK: !7 = !DILocalVariable(tag: DW_TAG_arg_variable, arg: 0, scope: !0) +; CHECK: !8 = !DILocalVariable(tag: DW_TAG_auto_variable, scope: !0) +!7 = !DILocalVariable(tag: DW_TAG_arg_variable, scope: !0) +!8 = !DILocalVariable(tag: DW_TAG_auto_variable, scope: !0) diff --git a/test/Assembler/dilocation.ll b/test/Assembler/dilocation.ll new file mode 100644 index 00000000000..a468f8abe9c --- /dev/null +++ b/test/Assembler/dilocation.ll @@ -0,0 +1,23 @@ +; RUN: llvm-as < %s | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s + +; CHECK: !named = !{!0, !1, !1, !2, !2, !3, !3, !4} +!named = !{!0, !1, !2, !3, !4, !5, !6, !7} + +; CHECK: !0 = !DISubprogram( +!0 = !DISubprogram() + +; CHECK-NEXT: !1 = !DILocation(line: 3, column: 7, scope: !0) +!1 = !DILocation(line: 3, column: 7, scope: !0) +!2 = !DILocation(scope: !0, column: 7, line: 3) + +; CHECK-NEXT: !2 = !DILocation(line: 3, column: 7, scope: !0, inlinedAt: !1) +!3 = !DILocation(scope: !0, inlinedAt: !1, column: 7, line: 3) +!4 = !DILocation(column: 7, line: 3, scope: !0, inlinedAt: !1) + +; CHECK-NEXT: !3 = !DILocation(line: 0, scope: !0) +!5 = !DILocation(scope: !0) +!6 = !DILocation(scope: !0, column: 0, line: 0) + +; CHECK-NEXT: !4 = !DILocation(line: 4294967295, column: 65535, scope: !0) +!7 = !DILocation(line: 4294967295, column: 65535, scope: !0) diff --git a/test/Assembler/dinamespace.ll b/test/Assembler/dinamespace.ll new file mode 100644 index 00000000000..5d8b6b3fa7d --- /dev/null +++ b/test/Assembler/dinamespace.ll @@ -0,0 +1,16 @@ +; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s + +; CHECK: !named = !{!0, !1, !2, !3, !4, !4} +!named = !{!0, !1, !2, !3, !4, !5} + +!0 = !DIFile(filename: "file.cpp", directory: "/path/to/dir") +!1 = distinct !{} +!2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") + +; CHECK: !3 = !DINamespace(name: "Namespace", scope: !0, file: !2, line: 7) +!3 = !DINamespace(name: "Namespace", scope: !0, file: !2, line: 7) + +; CHECK: !4 = !DINamespace(scope: !0) +!4 = !DINamespace(name: "", scope: !0, file: null, line: 0) +!5 = !DINamespace(scope: !0) diff --git a/test/Assembler/diobjcproperty.ll b/test/Assembler/diobjcproperty.ll new file mode 100644 index 00000000000..ca13e27662d --- /dev/null +++ b/test/Assembler/diobjcproperty.ll @@ -0,0 +1,19 @@ +; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s + +; CHECK: !named = !{!0, !1, !2, !3, !4, !4} +!named = !{!0, !1, !2, !3, !4, !5} + +!0 = distinct !{} +!1 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") +!2 = !DICompositeType(tag: DW_TAG_structure_type, name: "Object") + +; CHECK: !2 = !DICompositeType({{.*}}) +; CHECK-NEXT: !3 = !DIObjCProperty(name: "foo", file: !1, line: 7, setter: "setFoo", getter: "getFoo", attributes: 7, type: !2) +!3 = !DIObjCProperty(name: "foo", file: !1, line: 7, setter: "setFoo", + getter: "getFoo", attributes: 7, type: !2) + +; CHECK-NEXT: !4 = !DIObjCProperty() +!4 = !DIObjCProperty(name: "", file: null, line: 0, setter: "", getter: "", + attributes: 0, type: null) +!5 = !DIObjCProperty() diff --git a/test/Assembler/disubprogram.ll b/test/Assembler/disubprogram.ll new file mode 100644 index 00000000000..3fa1081889f --- /dev/null +++ b/test/Assembler/disubprogram.ll @@ -0,0 +1,28 @@ +; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s + +declare void @_Z3foov() + +; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9} +!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9} + +!0 = !{null} +!1 = distinct !DICompositeType(tag: DW_TAG_structure_type) +!2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") +!3 = !DISubroutineType(types: !0) +!4 = distinct !DICompositeType(tag: DW_TAG_structure_type) +!5 = distinct !{} +!6 = distinct !DISubprogram(isDefinition: false) +!7 = distinct !{} + +; CHECK: !8 = !DISubprogram(name: "foo", linkageName: "_Zfoov", scope: !1, file: !2, line: 7, type: !3, isLocal: true, isDefinition: false, scopeLine: 8, containingType: !4, virtuality: DW_VIRTUALITY_pure_virtual, virtualIndex: 10, flags: DIFlagPrototyped, isOptimized: true, function: void ()* @_Z3foov, templateParams: !5, declaration: !6, variables: !7) +!8 = !DISubprogram(name: "foo", linkageName: "_Zfoov", scope: !1, + file: !2, line: 7, type: !3, isLocal: true, + isDefinition: false, scopeLine: 8, containingType: !4, + virtuality: DW_VIRTUALITY_pure_virtual, virtualIndex: 10, + flags: DIFlagPrototyped, isOptimized: true, function: void ()* @_Z3foov, + templateParams: !5, declaration: !6, variables: !7) + +; CHECK: !9 = !DISubprogram(scope: null, isLocal: false, isDefinition: true, isOptimized: false) +!9 = !DISubprogram() + diff --git a/test/Assembler/disubrange-empty-array.ll b/test/Assembler/disubrange-empty-array.ll new file mode 100644 index 00000000000..7b5279e3d3c --- /dev/null +++ b/test/Assembler/disubrange-empty-array.ll @@ -0,0 +1,14 @@ +; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s + +; CHECK: !named = !{!0, !0, !1, !2} +!named = !{!0, !1, !2, !3} + +; CHECK: !0 = !DISubrange(count: -1) +; CHECK-NEXT: !1 = !DISubrange(count: -1, lowerBound: 4) +; CHECK-NEXT: !2 = !DISubrange(count: -1, lowerBound: -5) +!0 = !DISubrange(count: -1) +!1 = !DISubrange(count: -1, lowerBound: 0) + +!2 = !DISubrange(count: -1, lowerBound: 4) +!3 = !DISubrange(count: -1, lowerBound: -5) diff --git a/test/Assembler/disubroutinetype.ll b/test/Assembler/disubroutinetype.ll new file mode 100644 index 00000000000..4ec2be7de3b --- /dev/null +++ b/test/Assembler/disubroutinetype.ll @@ -0,0 +1,23 @@ +; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s + +; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8} +!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8} + +!0 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) +!1 = !{null} +!2 = !{null, !0} +!3 = !{!0, !0, !0} + + +; CHECK: !4 = !DISubroutineType(types: !1) +; CHECK: !5 = !DISubroutineType(types: !2) +; CHECK: !6 = !DISubroutineType(types: !3) +; CHECK: !7 = !DISubroutineType(flags: DIFlagLValueReference, types: !3) +!4 = !DISubroutineType(types: !1) +!5 = !DISubroutineType(types: !2) +!6 = !DISubroutineType(types: !3) +!7 = !DISubroutineType(flags: DIFlagLValueReference, types: !3) + +; CHECK: !8 = !DISubroutineType(types: null) +!8 = !DISubroutineType(types: null) diff --git a/test/Assembler/ditemplateparameter.ll b/test/Assembler/ditemplateparameter.ll new file mode 100644 index 00000000000..a356ad4e7bc --- /dev/null +++ b/test/Assembler/ditemplateparameter.ll @@ -0,0 +1,24 @@ +; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s + +; CHECK: !named = !{!0, !1, !2, !3, !3, !4, !5, !5, !6} +!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8} + +!0 = distinct !{} +!1 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) +; CHECK: !1 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) + +; CHECK-NEXT: !2 = !DITemplateTypeParameter(name: "Ty", type: !1) +; CHECK-NEXT: !3 = !DITemplateTypeParameter(type: !1) +!2 = !DITemplateTypeParameter(name: "Ty", type: !1) +!3 = !DITemplateTypeParameter(type: !1) +!4 = !DITemplateTypeParameter(name: "", type: !1) + +; CHECK-NEXT: !4 = !DITemplateValueParameter(name: "V", type: !1, value: i32 7) +; CHECK-NEXT: !5 = !DITemplateValueParameter(type: !1, value: i32 7) +; CHECK-NEXT: !6 = !DITemplateValueParameter(tag: DW_TAG_GNU_template_template_param, name: "param", type: !1, value: !"template") +!5 = !DITemplateValueParameter(name: "V", type: !1, value: i32 7) +!6 = !DITemplateValueParameter(type: !1, value: i32 7) +!7 = !DITemplateValueParameter(tag: DW_TAG_template_value_parameter, + name: "", type: !1, value: i32 7) +!8 = !DITemplateValueParameter(tag: DW_TAG_GNU_template_template_param, name: "param", type: !1, value: !"template") diff --git a/test/Assembler/ditype-large-values.ll b/test/Assembler/ditype-large-values.ll new file mode 100644 index 00000000000..a371ac68f90 --- /dev/null +++ b/test/Assembler/ditype-large-values.ll @@ -0,0 +1,12 @@ +; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s + +; CHECK: !named = !{!0, !1, !2} +!named = !{!0, !1, !2} + +; CHECK: !0 = !DIBasicType(name: "name", size: 18446744073709551615, align: 18446744073709551614, encoding: DW_ATE_unsigned_char) +; CHECK-NEXT: !1 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !0, size: 18446744073709551615, align: 18446744073709551614, offset: 18446744073709551613) +; CHECK-NEXT: !2 = !DICompositeType(tag: DW_TAG_array_type, baseType: !0, size: 18446744073709551615, align: 18446744073709551614, offset: 18446744073709551613) +!0 = !DIBasicType(tag: DW_TAG_base_type, name: "name", size: 18446744073709551615, align: 18446744073709551614, encoding: DW_ATE_unsigned_char) +!1 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !0, size: 18446744073709551615, align: 18446744073709551614, offset: 18446744073709551613) +!2 = !DICompositeType(tag: DW_TAG_array_type, baseType: !0, size: 18446744073709551615, align: 18446744073709551614, offset: 18446744073709551613) diff --git a/test/Assembler/invalid-dicompileunit-language-bad.ll b/test/Assembler/invalid-dicompileunit-language-bad.ll new file mode 100644 index 00000000000..e6f49f3fba4 --- /dev/null +++ b/test/Assembler/invalid-dicompileunit-language-bad.ll @@ -0,0 +1,5 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: :[[@LINE+1]]:31: error: invalid DWARF language 'DW_LANG_NoSuchLanguage' +!0 = !DICompileUnit(language: DW_LANG_NoSuchLanguage, + file: !DIFile(filename: "a", directory: "b")) diff --git a/test/Assembler/invalid-dicompileunit-language-overflow.ll b/test/Assembler/invalid-dicompileunit-language-overflow.ll new file mode 100644 index 00000000000..c558f7aaa25 --- /dev/null +++ b/test/Assembler/invalid-dicompileunit-language-overflow.ll @@ -0,0 +1,9 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK-NOT: error: +!0 = !DICompileUnit(language: 65535, + file: !DIFile(filename: "a", directory: "b")) + +; CHECK: :[[@LINE+1]]:31: error: value for 'language' too large, limit is 65535 +!1 = !DICompileUnit(language: 65536, + file: !DIFile(filename: "a", directory: "b")) diff --git a/test/Assembler/invalid-dicompileunit-missing-language.ll b/test/Assembler/invalid-dicompileunit-missing-language.ll new file mode 100644 index 00000000000..15631b7f640 --- /dev/null +++ b/test/Assembler/invalid-dicompileunit-missing-language.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: :[[@LINE+1]]:65: error: missing required field 'language' +!0 = !DICompileUnit(file: !DIFile(filename: "a", directory: "b")) diff --git a/test/Assembler/invalid-dicompileunit-null-file.ll b/test/Assembler/invalid-dicompileunit-null-file.ll new file mode 100644 index 00000000000..cc1892e9146 --- /dev/null +++ b/test/Assembler/invalid-dicompileunit-null-file.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: :[[@LINE+1]]:27: error: 'file' cannot be null +!0 = !DICompileUnit(file: null) diff --git a/test/Assembler/invalid-dicompositetype-missing-tag.ll b/test/Assembler/invalid-dicompositetype-missing-tag.ll new file mode 100644 index 00000000000..e68c0147990 --- /dev/null +++ b/test/Assembler/invalid-dicompositetype-missing-tag.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: [[@LINE+1]]:36: error: missing required field 'tag' +!25 = !DICompositeType(name: "Type") diff --git a/test/Assembler/invalid-diderivedtype-missing-basetype.ll b/test/Assembler/invalid-diderivedtype-missing-basetype.ll new file mode 100644 index 00000000000..308c2ea90ef --- /dev/null +++ b/test/Assembler/invalid-diderivedtype-missing-basetype.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: [[@LINE+1]]:45: error: missing required field 'baseType' +!0 = !DIDerivedType(tag: DW_TAG_pointer_type) diff --git a/test/Assembler/invalid-diderivedtype-missing-tag.ll b/test/Assembler/invalid-diderivedtype-missing-tag.ll new file mode 100644 index 00000000000..fd286f4c296 --- /dev/null +++ b/test/Assembler/invalid-diderivedtype-missing-tag.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: [[@LINE+1]]:34: error: missing required field 'tag' +!0 = !DIDerivedType(baseType: !{}) diff --git a/test/Assembler/invalid-dienumerator-missing-name.ll b/test/Assembler/invalid-dienumerator-missing-name.ll new file mode 100644 index 00000000000..656d3439ba2 --- /dev/null +++ b/test/Assembler/invalid-dienumerator-missing-name.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: [[@LINE+1]]:28: error: missing required field 'name' +!0 = !DIEnumerator(value: 7) diff --git a/test/Assembler/invalid-dienumerator-missing-value.ll b/test/Assembler/invalid-dienumerator-missing-value.ll new file mode 100644 index 00000000000..0eee3be41b6 --- /dev/null +++ b/test/Assembler/invalid-dienumerator-missing-value.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: [[@LINE+1]]:32: error: missing required field 'value' +!0 = !DIEnumerator(name: "name") diff --git a/test/Assembler/invalid-diexpression-large.ll b/test/Assembler/invalid-diexpression-large.ll new file mode 100644 index 00000000000..32b77ee5138 --- /dev/null +++ b/test/Assembler/invalid-diexpression-large.ll @@ -0,0 +1,7 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK-NOT: error: +!0 = !DIExpression(18446744073709551615) + +; CHECK: :[[@LINE+1]]:20: error: element too large, limit is 18446744073709551615 +!1 = !DIExpression(18446744073709551616) diff --git a/test/Assembler/invalid-diexpression-verify.ll b/test/Assembler/invalid-diexpression-verify.ll new file mode 100644 index 00000000000..50d6943dead --- /dev/null +++ b/test/Assembler/invalid-diexpression-verify.ll @@ -0,0 +1,9 @@ +; RUN: not llvm-as -disable-output < %s 2>&1 | FileCheck -check-prefix VERIFY %s +; RUN: llvm-as -disable-verify < %s | llvm-dis | FileCheck -check-prefix NOVERIFY %s + +; NOVERIFY: !named = !{!0} +!named = !{!0} + +; NOVERIFY: !0 = !DIExpression(0, 1, 9, 7, 2) +; VERIFY: assembly parsed, but does not verify +!0 = !DIExpression(0, 1, 9, 7, 2) diff --git a/test/Assembler/invalid-difile-missing-directory.ll b/test/Assembler/invalid-difile-missing-directory.ll new file mode 100644 index 00000000000..a54a22f2e18 --- /dev/null +++ b/test/Assembler/invalid-difile-missing-directory.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: [[@LINE+1]]:30: error: missing required field 'directory' +!0 = !DIFile(filename: "file") diff --git a/test/Assembler/invalid-difile-missing-filename.ll b/test/Assembler/invalid-difile-missing-filename.ll new file mode 100644 index 00000000000..17bf3da3f7a --- /dev/null +++ b/test/Assembler/invalid-difile-missing-filename.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: [[@LINE+1]]:30: error: missing required field 'filename' +!0 = !DIFile(directory: "dir") diff --git a/test/Assembler/invalid-diglobalvariable-empty-name.ll b/test/Assembler/invalid-diglobalvariable-empty-name.ll new file mode 100644 index 00000000000..a4e69f3c8b7 --- /dev/null +++ b/test/Assembler/invalid-diglobalvariable-empty-name.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: :[[@LINE+1]]:30: error: 'name' cannot be empty +!0 = !DIGlobalVariable(name: "") diff --git a/test/Assembler/invalid-diglobalvariable-missing-name.ll b/test/Assembler/invalid-diglobalvariable-missing-name.ll new file mode 100644 index 00000000000..baf4d73d94f --- /dev/null +++ b/test/Assembler/invalid-diglobalvariable-missing-name.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: :[[@LINE+1]]:24: error: missing required field 'name' +!0 = !DIGlobalVariable() diff --git a/test/Assembler/invalid-diimportedentity-missing-scope.ll b/test/Assembler/invalid-diimportedentity-missing-scope.ll new file mode 100644 index 00000000000..06164e88d9b --- /dev/null +++ b/test/Assembler/invalid-diimportedentity-missing-scope.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: [[@LINE+1]]:51: error: missing required field 'scope' +!3 = !DIImportedEntity(tag: DW_TAG_imported_module) diff --git a/test/Assembler/invalid-diimportedentity-missing-tag.ll b/test/Assembler/invalid-diimportedentity-missing-tag.ll new file mode 100644 index 00000000000..996b1ffdc9b --- /dev/null +++ b/test/Assembler/invalid-diimportedentity-missing-tag.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: [[@LINE+1]]:33: error: missing required field 'tag' +!3 = !DIImportedEntity(scope: !0) diff --git a/test/Assembler/invalid-dilexicalblock-missing-scope.ll b/test/Assembler/invalid-dilexicalblock-missing-scope.ll new file mode 100644 index 00000000000..6108e692b21 --- /dev/null +++ b/test/Assembler/invalid-dilexicalblock-missing-scope.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: [[@LINE+1]]:29: error: missing required field 'scope' +!0 = !DILexicalBlock(line: 7) diff --git a/test/Assembler/invalid-dilexicalblock-null-scope.ll b/test/Assembler/invalid-dilexicalblock-null-scope.ll new file mode 100644 index 00000000000..7457b6085d6 --- /dev/null +++ b/test/Assembler/invalid-dilexicalblock-null-scope.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: :[[@LINE+1]]:29: error: 'scope' cannot be null +!0 = !DILexicalBlock(scope: null) diff --git a/test/Assembler/invalid-dilexicalblockfile-missing-discriminator.ll b/test/Assembler/invalid-dilexicalblockfile-missing-discriminator.ll new file mode 100644 index 00000000000..bd8395ccf4d --- /dev/null +++ b/test/Assembler/invalid-dilexicalblockfile-missing-discriminator.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: [[@LINE+1]]:36: error: missing required field 'discriminator' +!0 = !DILexicalBlockFile(scope: !{}) diff --git a/test/Assembler/invalid-dilexicalblockfile-missing-scope.ll b/test/Assembler/invalid-dilexicalblockfile-missing-scope.ll new file mode 100644 index 00000000000..fd037501c40 --- /dev/null +++ b/test/Assembler/invalid-dilexicalblockfile-missing-scope.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: [[@LINE+1]]:42: error: missing required field 'scope' +!0 = !DILexicalBlockFile(discriminator: 0) diff --git a/test/Assembler/invalid-dilexicalblockfile-null-scope.ll b/test/Assembler/invalid-dilexicalblockfile-null-scope.ll new file mode 100644 index 00000000000..ae1a5d432e3 --- /dev/null +++ b/test/Assembler/invalid-dilexicalblockfile-null-scope.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: :[[@LINE+1]]:33: error: 'scope' cannot be null +!0 = !DILexicalBlockFile(scope: null) diff --git a/test/Assembler/invalid-dilocalvariable-missing-scope.ll b/test/Assembler/invalid-dilocalvariable-missing-scope.ll new file mode 100644 index 00000000000..45dcad71360 --- /dev/null +++ b/test/Assembler/invalid-dilocalvariable-missing-scope.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: :[[@LINE+1]]:48: error: missing required field 'scope' +!0 = !DILocalVariable(tag: DW_TAG_auto_variable) diff --git a/test/Assembler/invalid-dilocalvariable-missing-tag.ll b/test/Assembler/invalid-dilocalvariable-missing-tag.ll new file mode 100644 index 00000000000..18062edf75b --- /dev/null +++ b/test/Assembler/invalid-dilocalvariable-missing-tag.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: :[[@LINE+1]]:45: error: missing required field 'tag' +!0 = !DILocalVariable(scope: !DISubprogram()) diff --git a/test/Assembler/invalid-dilocalvariable-null-scope.ll b/test/Assembler/invalid-dilocalvariable-null-scope.ll new file mode 100644 index 00000000000..859412a2568 --- /dev/null +++ b/test/Assembler/invalid-dilocalvariable-null-scope.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: :[[@LINE+1]]:30: error: 'scope' cannot be null +!0 = !DILocalVariable(scope: null) diff --git a/test/Assembler/invalid-dilocation-field-bad.ll b/test/Assembler/invalid-dilocation-field-bad.ll new file mode 100644 index 00000000000..e68aa45b03e --- /dev/null +++ b/test/Assembler/invalid-dilocation-field-bad.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: :[[@LINE+1]]:18: error: invalid field 'bad' +!0 = !DILocation(bad: 0) diff --git a/test/Assembler/invalid-dilocation-field-twice.ll b/test/Assembler/invalid-dilocation-field-twice.ll new file mode 100644 index 00000000000..d1dab68246c --- /dev/null +++ b/test/Assembler/invalid-dilocation-field-twice.ll @@ -0,0 +1,6 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +!0 = !{} + +; CHECK: :[[@LINE+1]]:38: error: field 'line' cannot be specified more than once +!1 = !DILocation(line: 3, scope: !0, line: 3) diff --git a/test/Assembler/invalid-dilocation-missing-scope-2.ll b/test/Assembler/invalid-dilocation-missing-scope-2.ll new file mode 100644 index 00000000000..380e3fde94f --- /dev/null +++ b/test/Assembler/invalid-dilocation-missing-scope-2.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: :[[@LINE+1]]:25: error: missing required field 'scope' +!0 = !DILocation(line: 7) diff --git a/test/Assembler/invalid-dilocation-missing-scope.ll b/test/Assembler/invalid-dilocation-missing-scope.ll new file mode 100644 index 00000000000..fb0cd866dc1 --- /dev/null +++ b/test/Assembler/invalid-dilocation-missing-scope.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: :[[@LINE+1]]:18: error: missing required field 'scope' +!0 = !DILocation() diff --git a/test/Assembler/invalid-dilocation-null-scope.ll b/test/Assembler/invalid-dilocation-null-scope.ll new file mode 100644 index 00000000000..38c59e15d15 --- /dev/null +++ b/test/Assembler/invalid-dilocation-null-scope.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: :[[@LINE+1]]:25: error: 'scope' cannot be null +!0 = !DILocation(scope: null) diff --git a/test/Assembler/invalid-dilocation-overflow-column.ll b/test/Assembler/invalid-dilocation-overflow-column.ll new file mode 100644 index 00000000000..043f84d3ab2 --- /dev/null +++ b/test/Assembler/invalid-dilocation-overflow-column.ll @@ -0,0 +1,9 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +!0 = !{} + +; CHECK-NOT: error: +!1 = !DILocation(column: 65535, scope: !0) + +; CHECK: :[[@LINE+1]]:26: error: value for 'column' too large, limit is 65535 +!2 = !DILocation(column: 65536, scope: !0) diff --git a/test/Assembler/invalid-dilocation-overflow-line.ll b/test/Assembler/invalid-dilocation-overflow-line.ll new file mode 100644 index 00000000000..7a6774231a9 --- /dev/null +++ b/test/Assembler/invalid-dilocation-overflow-line.ll @@ -0,0 +1,9 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +!0 = !{} + +; CHECK-NOT: error: +!1 = !DILocation(line: 4294967295, scope: !0) + +; CHECK: :[[@LINE+1]]:24: error: value for 'line' too large, limit is 4294967295 +!2 = !DILocation(line: 4294967296, scope: !0) diff --git a/test/Assembler/invalid-dinamespace-missing-namespace.ll b/test/Assembler/invalid-dinamespace-missing-namespace.ll new file mode 100644 index 00000000000..c29391b125d --- /dev/null +++ b/test/Assembler/invalid-dinamespace-missing-namespace.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: [[@LINE+1]]:36: error: missing required field 'scope' +!0 = !DINamespace(name: "Namespace") diff --git a/test/Assembler/invalid-disubrange-count-large.ll b/test/Assembler/invalid-disubrange-count-large.ll new file mode 100644 index 00000000000..003274f3a07 --- /dev/null +++ b/test/Assembler/invalid-disubrange-count-large.ll @@ -0,0 +1,7 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK-NOT: error: +!0 = !DISubrange(count: 9223372036854775807) + +; CHECK: :[[@LINE+1]]:25: error: value for 'count' too large, limit is 9223372036854775807 +!1 = !DISubrange(count: 9223372036854775808) diff --git a/test/Assembler/invalid-disubrange-count-missing.ll b/test/Assembler/invalid-disubrange-count-missing.ll new file mode 100644 index 00000000000..8fc4487117f --- /dev/null +++ b/test/Assembler/invalid-disubrange-count-missing.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: [[@LINE+1]]:32: error: missing required field 'count' +!0 = !DISubrange(lowerBound: -3) diff --git a/test/Assembler/invalid-disubrange-count-negative.ll b/test/Assembler/invalid-disubrange-count-negative.ll new file mode 100644 index 00000000000..f2ad4c302cb --- /dev/null +++ b/test/Assembler/invalid-disubrange-count-negative.ll @@ -0,0 +1,7 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK-NOT: error: +!0 = !DISubrange(count: -1) + +; CHECK: :[[@LINE+1]]:25: error: value for 'count' too small, limit is -1 +!0 = !DISubrange(count: -2) diff --git a/test/Assembler/invalid-disubrange-lowerBound-max.ll b/test/Assembler/invalid-disubrange-lowerBound-max.ll new file mode 100644 index 00000000000..e163dc47804 --- /dev/null +++ b/test/Assembler/invalid-disubrange-lowerBound-max.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: [[@LINE+1]]:41: error: value for 'lowerBound' too large, limit is 9223372036854775807 +!0 = !DISubrange(count: 30, lowerBound: 9223372036854775808) diff --git a/test/Assembler/invalid-disubrange-lowerBound-min.ll b/test/Assembler/invalid-disubrange-lowerBound-min.ll new file mode 100644 index 00000000000..1dc3a141a57 --- /dev/null +++ b/test/Assembler/invalid-disubrange-lowerBound-min.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: [[@LINE+1]]:41: error: value for 'lowerBound' too small, limit is -9223372036854775808 +!0 = !DISubrange(count: 30, lowerBound: -9223372036854775809) diff --git a/test/Assembler/invalid-disubroutinetype-missing-types.ll b/test/Assembler/invalid-disubroutinetype-missing-types.ll new file mode 100644 index 00000000000..086e5cc593e --- /dev/null +++ b/test/Assembler/invalid-disubroutinetype-missing-types.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: [[@LINE+1]]:65: error: missing required field 'types' +!29 = !DISubroutineType(flags: DIFlagPublic | DIFlagStaticMember) diff --git a/test/Assembler/invalid-ditemplatetypeparameter-missing-type.ll b/test/Assembler/invalid-ditemplatetypeparameter-missing-type.ll new file mode 100644 index 00000000000..797abd2c304 --- /dev/null +++ b/test/Assembler/invalid-ditemplatetypeparameter-missing-type.ll @@ -0,0 +1,4 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: [[@LINE+1]]:44: error: missing required field 'type' +!0 = !DITemplateTypeParameter(name: "param") diff --git a/test/Assembler/invalid-ditemplatevalueparameter-missing-value.ll b/test/Assembler/invalid-ditemplatevalueparameter-missing-value.ll new file mode 100644 index 00000000000..883bea1c9ad --- /dev/null +++ b/test/Assembler/invalid-ditemplatevalueparameter-missing-value.ll @@ -0,0 +1,5 @@ +; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s + +; CHECK: [[@LINE+2]]:41: error: missing required field 'value' +!0 = !DITemplateValueParameter(tag: DW_TAG_template_value_parameter, + type: !{}) diff --git a/test/Assembler/invalid-mdcompileunit-language-bad.ll b/test/Assembler/invalid-mdcompileunit-language-bad.ll deleted file mode 100644 index e6f49f3fba4..00000000000 --- a/test/Assembler/invalid-mdcompileunit-language-bad.ll +++ /dev/null @@ -1,5 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: :[[@LINE+1]]:31: error: invalid DWARF language 'DW_LANG_NoSuchLanguage' -!0 = !DICompileUnit(language: DW_LANG_NoSuchLanguage, - file: !DIFile(filename: "a", directory: "b")) diff --git a/test/Assembler/invalid-mdcompileunit-language-overflow.ll b/test/Assembler/invalid-mdcompileunit-language-overflow.ll deleted file mode 100644 index c558f7aaa25..00000000000 --- a/test/Assembler/invalid-mdcompileunit-language-overflow.ll +++ /dev/null @@ -1,9 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK-NOT: error: -!0 = !DICompileUnit(language: 65535, - file: !DIFile(filename: "a", directory: "b")) - -; CHECK: :[[@LINE+1]]:31: error: value for 'language' too large, limit is 65535 -!1 = !DICompileUnit(language: 65536, - file: !DIFile(filename: "a", directory: "b")) diff --git a/test/Assembler/invalid-mdcompileunit-missing-language.ll b/test/Assembler/invalid-mdcompileunit-missing-language.ll deleted file mode 100644 index 15631b7f640..00000000000 --- a/test/Assembler/invalid-mdcompileunit-missing-language.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: :[[@LINE+1]]:65: error: missing required field 'language' -!0 = !DICompileUnit(file: !DIFile(filename: "a", directory: "b")) diff --git a/test/Assembler/invalid-mdcompileunit-null-file.ll b/test/Assembler/invalid-mdcompileunit-null-file.ll deleted file mode 100644 index cc1892e9146..00000000000 --- a/test/Assembler/invalid-mdcompileunit-null-file.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: :[[@LINE+1]]:27: error: 'file' cannot be null -!0 = !DICompileUnit(file: null) diff --git a/test/Assembler/invalid-mdcompositetype-missing-tag.ll b/test/Assembler/invalid-mdcompositetype-missing-tag.ll deleted file mode 100644 index e68c0147990..00000000000 --- a/test/Assembler/invalid-mdcompositetype-missing-tag.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: [[@LINE+1]]:36: error: missing required field 'tag' -!25 = !DICompositeType(name: "Type") diff --git a/test/Assembler/invalid-mdderivedtype-missing-basetype.ll b/test/Assembler/invalid-mdderivedtype-missing-basetype.ll deleted file mode 100644 index 308c2ea90ef..00000000000 --- a/test/Assembler/invalid-mdderivedtype-missing-basetype.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: [[@LINE+1]]:45: error: missing required field 'baseType' -!0 = !DIDerivedType(tag: DW_TAG_pointer_type) diff --git a/test/Assembler/invalid-mdderivedtype-missing-tag.ll b/test/Assembler/invalid-mdderivedtype-missing-tag.ll deleted file mode 100644 index fd286f4c296..00000000000 --- a/test/Assembler/invalid-mdderivedtype-missing-tag.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: [[@LINE+1]]:34: error: missing required field 'tag' -!0 = !DIDerivedType(baseType: !{}) diff --git a/test/Assembler/invalid-mdenumerator-missing-name.ll b/test/Assembler/invalid-mdenumerator-missing-name.ll deleted file mode 100644 index 656d3439ba2..00000000000 --- a/test/Assembler/invalid-mdenumerator-missing-name.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: [[@LINE+1]]:28: error: missing required field 'name' -!0 = !DIEnumerator(value: 7) diff --git a/test/Assembler/invalid-mdenumerator-missing-value.ll b/test/Assembler/invalid-mdenumerator-missing-value.ll deleted file mode 100644 index 0eee3be41b6..00000000000 --- a/test/Assembler/invalid-mdenumerator-missing-value.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: [[@LINE+1]]:32: error: missing required field 'value' -!0 = !DIEnumerator(name: "name") diff --git a/test/Assembler/invalid-mdexpression-large.ll b/test/Assembler/invalid-mdexpression-large.ll deleted file mode 100644 index 32b77ee5138..00000000000 --- a/test/Assembler/invalid-mdexpression-large.ll +++ /dev/null @@ -1,7 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK-NOT: error: -!0 = !DIExpression(18446744073709551615) - -; CHECK: :[[@LINE+1]]:20: error: element too large, limit is 18446744073709551615 -!1 = !DIExpression(18446744073709551616) diff --git a/test/Assembler/invalid-mdexpression-verify.ll b/test/Assembler/invalid-mdexpression-verify.ll deleted file mode 100644 index 50d6943dead..00000000000 --- a/test/Assembler/invalid-mdexpression-verify.ll +++ /dev/null @@ -1,9 +0,0 @@ -; RUN: not llvm-as -disable-output < %s 2>&1 | FileCheck -check-prefix VERIFY %s -; RUN: llvm-as -disable-verify < %s | llvm-dis | FileCheck -check-prefix NOVERIFY %s - -; NOVERIFY: !named = !{!0} -!named = !{!0} - -; NOVERIFY: !0 = !DIExpression(0, 1, 9, 7, 2) -; VERIFY: assembly parsed, but does not verify -!0 = !DIExpression(0, 1, 9, 7, 2) diff --git a/test/Assembler/invalid-mdfile-missing-directory.ll b/test/Assembler/invalid-mdfile-missing-directory.ll deleted file mode 100644 index a54a22f2e18..00000000000 --- a/test/Assembler/invalid-mdfile-missing-directory.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: [[@LINE+1]]:30: error: missing required field 'directory' -!0 = !DIFile(filename: "file") diff --git a/test/Assembler/invalid-mdfile-missing-filename.ll b/test/Assembler/invalid-mdfile-missing-filename.ll deleted file mode 100644 index 17bf3da3f7a..00000000000 --- a/test/Assembler/invalid-mdfile-missing-filename.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: [[@LINE+1]]:30: error: missing required field 'filename' -!0 = !DIFile(directory: "dir") diff --git a/test/Assembler/invalid-mdglobalvariable-empty-name.ll b/test/Assembler/invalid-mdglobalvariable-empty-name.ll deleted file mode 100644 index a4e69f3c8b7..00000000000 --- a/test/Assembler/invalid-mdglobalvariable-empty-name.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: :[[@LINE+1]]:30: error: 'name' cannot be empty -!0 = !DIGlobalVariable(name: "") diff --git a/test/Assembler/invalid-mdglobalvariable-missing-name.ll b/test/Assembler/invalid-mdglobalvariable-missing-name.ll deleted file mode 100644 index baf4d73d94f..00000000000 --- a/test/Assembler/invalid-mdglobalvariable-missing-name.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: :[[@LINE+1]]:24: error: missing required field 'name' -!0 = !DIGlobalVariable() diff --git a/test/Assembler/invalid-mdimportedentity-missing-scope.ll b/test/Assembler/invalid-mdimportedentity-missing-scope.ll deleted file mode 100644 index 06164e88d9b..00000000000 --- a/test/Assembler/invalid-mdimportedentity-missing-scope.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: [[@LINE+1]]:51: error: missing required field 'scope' -!3 = !DIImportedEntity(tag: DW_TAG_imported_module) diff --git a/test/Assembler/invalid-mdimportedentity-missing-tag.ll b/test/Assembler/invalid-mdimportedentity-missing-tag.ll deleted file mode 100644 index 996b1ffdc9b..00000000000 --- a/test/Assembler/invalid-mdimportedentity-missing-tag.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: [[@LINE+1]]:33: error: missing required field 'tag' -!3 = !DIImportedEntity(scope: !0) diff --git a/test/Assembler/invalid-mdlexicalblock-missing-scope.ll b/test/Assembler/invalid-mdlexicalblock-missing-scope.ll deleted file mode 100644 index 6108e692b21..00000000000 --- a/test/Assembler/invalid-mdlexicalblock-missing-scope.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: [[@LINE+1]]:29: error: missing required field 'scope' -!0 = !DILexicalBlock(line: 7) diff --git a/test/Assembler/invalid-mdlexicalblock-null-scope.ll b/test/Assembler/invalid-mdlexicalblock-null-scope.ll deleted file mode 100644 index 7457b6085d6..00000000000 --- a/test/Assembler/invalid-mdlexicalblock-null-scope.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: :[[@LINE+1]]:29: error: 'scope' cannot be null -!0 = !DILexicalBlock(scope: null) diff --git a/test/Assembler/invalid-mdlexicalblockfile-missing-discriminator.ll b/test/Assembler/invalid-mdlexicalblockfile-missing-discriminator.ll deleted file mode 100644 index bd8395ccf4d..00000000000 --- a/test/Assembler/invalid-mdlexicalblockfile-missing-discriminator.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: [[@LINE+1]]:36: error: missing required field 'discriminator' -!0 = !DILexicalBlockFile(scope: !{}) diff --git a/test/Assembler/invalid-mdlexicalblockfile-missing-scope.ll b/test/Assembler/invalid-mdlexicalblockfile-missing-scope.ll deleted file mode 100644 index fd037501c40..00000000000 --- a/test/Assembler/invalid-mdlexicalblockfile-missing-scope.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: [[@LINE+1]]:42: error: missing required field 'scope' -!0 = !DILexicalBlockFile(discriminator: 0) diff --git a/test/Assembler/invalid-mdlexicalblockfile-null-scope.ll b/test/Assembler/invalid-mdlexicalblockfile-null-scope.ll deleted file mode 100644 index ae1a5d432e3..00000000000 --- a/test/Assembler/invalid-mdlexicalblockfile-null-scope.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: :[[@LINE+1]]:33: error: 'scope' cannot be null -!0 = !DILexicalBlockFile(scope: null) diff --git a/test/Assembler/invalid-mdlocalvariable-missing-scope.ll b/test/Assembler/invalid-mdlocalvariable-missing-scope.ll deleted file mode 100644 index 45dcad71360..00000000000 --- a/test/Assembler/invalid-mdlocalvariable-missing-scope.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: :[[@LINE+1]]:48: error: missing required field 'scope' -!0 = !DILocalVariable(tag: DW_TAG_auto_variable) diff --git a/test/Assembler/invalid-mdlocalvariable-missing-tag.ll b/test/Assembler/invalid-mdlocalvariable-missing-tag.ll deleted file mode 100644 index 18062edf75b..00000000000 --- a/test/Assembler/invalid-mdlocalvariable-missing-tag.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: :[[@LINE+1]]:45: error: missing required field 'tag' -!0 = !DILocalVariable(scope: !DISubprogram()) diff --git a/test/Assembler/invalid-mdlocalvariable-null-scope.ll b/test/Assembler/invalid-mdlocalvariable-null-scope.ll deleted file mode 100644 index 859412a2568..00000000000 --- a/test/Assembler/invalid-mdlocalvariable-null-scope.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: :[[@LINE+1]]:30: error: 'scope' cannot be null -!0 = !DILocalVariable(scope: null) diff --git a/test/Assembler/invalid-mdlocation-field-bad.ll b/test/Assembler/invalid-mdlocation-field-bad.ll deleted file mode 100644 index e68aa45b03e..00000000000 --- a/test/Assembler/invalid-mdlocation-field-bad.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: :[[@LINE+1]]:18: error: invalid field 'bad' -!0 = !DILocation(bad: 0) diff --git a/test/Assembler/invalid-mdlocation-field-twice.ll b/test/Assembler/invalid-mdlocation-field-twice.ll deleted file mode 100644 index d1dab68246c..00000000000 --- a/test/Assembler/invalid-mdlocation-field-twice.ll +++ /dev/null @@ -1,6 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -!0 = !{} - -; CHECK: :[[@LINE+1]]:38: error: field 'line' cannot be specified more than once -!1 = !DILocation(line: 3, scope: !0, line: 3) diff --git a/test/Assembler/invalid-mdlocation-missing-scope-2.ll b/test/Assembler/invalid-mdlocation-missing-scope-2.ll deleted file mode 100644 index 380e3fde94f..00000000000 --- a/test/Assembler/invalid-mdlocation-missing-scope-2.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: :[[@LINE+1]]:25: error: missing required field 'scope' -!0 = !DILocation(line: 7) diff --git a/test/Assembler/invalid-mdlocation-missing-scope.ll b/test/Assembler/invalid-mdlocation-missing-scope.ll deleted file mode 100644 index fb0cd866dc1..00000000000 --- a/test/Assembler/invalid-mdlocation-missing-scope.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: :[[@LINE+1]]:18: error: missing required field 'scope' -!0 = !DILocation() diff --git a/test/Assembler/invalid-mdlocation-null-scope.ll b/test/Assembler/invalid-mdlocation-null-scope.ll deleted file mode 100644 index 38c59e15d15..00000000000 --- a/test/Assembler/invalid-mdlocation-null-scope.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: :[[@LINE+1]]:25: error: 'scope' cannot be null -!0 = !DILocation(scope: null) diff --git a/test/Assembler/invalid-mdlocation-overflow-column.ll b/test/Assembler/invalid-mdlocation-overflow-column.ll deleted file mode 100644 index 043f84d3ab2..00000000000 --- a/test/Assembler/invalid-mdlocation-overflow-column.ll +++ /dev/null @@ -1,9 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -!0 = !{} - -; CHECK-NOT: error: -!1 = !DILocation(column: 65535, scope: !0) - -; CHECK: :[[@LINE+1]]:26: error: value for 'column' too large, limit is 65535 -!2 = !DILocation(column: 65536, scope: !0) diff --git a/test/Assembler/invalid-mdlocation-overflow-line.ll b/test/Assembler/invalid-mdlocation-overflow-line.ll deleted file mode 100644 index 7a6774231a9..00000000000 --- a/test/Assembler/invalid-mdlocation-overflow-line.ll +++ /dev/null @@ -1,9 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -!0 = !{} - -; CHECK-NOT: error: -!1 = !DILocation(line: 4294967295, scope: !0) - -; CHECK: :[[@LINE+1]]:24: error: value for 'line' too large, limit is 4294967295 -!2 = !DILocation(line: 4294967296, scope: !0) diff --git a/test/Assembler/invalid-mdnamespace-missing-namespace.ll b/test/Assembler/invalid-mdnamespace-missing-namespace.ll deleted file mode 100644 index c29391b125d..00000000000 --- a/test/Assembler/invalid-mdnamespace-missing-namespace.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: [[@LINE+1]]:36: error: missing required field 'scope' -!0 = !DINamespace(name: "Namespace") diff --git a/test/Assembler/invalid-mdsubrange-count-large.ll b/test/Assembler/invalid-mdsubrange-count-large.ll deleted file mode 100644 index 003274f3a07..00000000000 --- a/test/Assembler/invalid-mdsubrange-count-large.ll +++ /dev/null @@ -1,7 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK-NOT: error: -!0 = !DISubrange(count: 9223372036854775807) - -; CHECK: :[[@LINE+1]]:25: error: value for 'count' too large, limit is 9223372036854775807 -!1 = !DISubrange(count: 9223372036854775808) diff --git a/test/Assembler/invalid-mdsubrange-count-missing.ll b/test/Assembler/invalid-mdsubrange-count-missing.ll deleted file mode 100644 index 8fc4487117f..00000000000 --- a/test/Assembler/invalid-mdsubrange-count-missing.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: [[@LINE+1]]:32: error: missing required field 'count' -!0 = !DISubrange(lowerBound: -3) diff --git a/test/Assembler/invalid-mdsubrange-count-negative.ll b/test/Assembler/invalid-mdsubrange-count-negative.ll deleted file mode 100644 index f2ad4c302cb..00000000000 --- a/test/Assembler/invalid-mdsubrange-count-negative.ll +++ /dev/null @@ -1,7 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK-NOT: error: -!0 = !DISubrange(count: -1) - -; CHECK: :[[@LINE+1]]:25: error: value for 'count' too small, limit is -1 -!0 = !DISubrange(count: -2) diff --git a/test/Assembler/invalid-mdsubrange-lowerBound-max.ll b/test/Assembler/invalid-mdsubrange-lowerBound-max.ll deleted file mode 100644 index e163dc47804..00000000000 --- a/test/Assembler/invalid-mdsubrange-lowerBound-max.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: [[@LINE+1]]:41: error: value for 'lowerBound' too large, limit is 9223372036854775807 -!0 = !DISubrange(count: 30, lowerBound: 9223372036854775808) diff --git a/test/Assembler/invalid-mdsubrange-lowerBound-min.ll b/test/Assembler/invalid-mdsubrange-lowerBound-min.ll deleted file mode 100644 index 1dc3a141a57..00000000000 --- a/test/Assembler/invalid-mdsubrange-lowerBound-min.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: [[@LINE+1]]:41: error: value for 'lowerBound' too small, limit is -9223372036854775808 -!0 = !DISubrange(count: 30, lowerBound: -9223372036854775809) diff --git a/test/Assembler/invalid-mdsubroutinetype-missing-types.ll b/test/Assembler/invalid-mdsubroutinetype-missing-types.ll deleted file mode 100644 index 086e5cc593e..00000000000 --- a/test/Assembler/invalid-mdsubroutinetype-missing-types.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: [[@LINE+1]]:65: error: missing required field 'types' -!29 = !DISubroutineType(flags: DIFlagPublic | DIFlagStaticMember) diff --git a/test/Assembler/invalid-mdtemplatetypeparameter-missing-type.ll b/test/Assembler/invalid-mdtemplatetypeparameter-missing-type.ll deleted file mode 100644 index 797abd2c304..00000000000 --- a/test/Assembler/invalid-mdtemplatetypeparameter-missing-type.ll +++ /dev/null @@ -1,4 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: [[@LINE+1]]:44: error: missing required field 'type' -!0 = !DITemplateTypeParameter(name: "param") diff --git a/test/Assembler/invalid-mdtemplatevalueparameter-missing-value.ll b/test/Assembler/invalid-mdtemplatevalueparameter-missing-value.ll deleted file mode 100644 index 883bea1c9ad..00000000000 --- a/test/Assembler/invalid-mdtemplatevalueparameter-missing-value.ll +++ /dev/null @@ -1,5 +0,0 @@ -; RUN: not llvm-as < %s -disable-output 2>&1 | FileCheck %s - -; CHECK: [[@LINE+2]]:41: error: missing required field 'value' -!0 = !DITemplateValueParameter(tag: DW_TAG_template_value_parameter, - type: !{}) diff --git a/test/Assembler/mdcompileunit.ll b/test/Assembler/mdcompileunit.ll deleted file mode 100644 index dc136f0b83e..00000000000 --- a/test/Assembler/mdcompileunit.ll +++ /dev/null @@ -1,31 +0,0 @@ -; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s -; RUN: verify-uselistorder %s - -; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !7, !8, !8} -!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9, !10} - -!0 = distinct !{} -!1 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") -!2 = distinct !{} -!3 = distinct !{} -!4 = distinct !{} -!5 = distinct !{} -!6 = distinct !{} - -; CHECK: !7 = !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", isOptimized: true, flags: "-O2", runtimeVersion: 2, splitDebugFilename: "abc.debug", emissionKind: 3, enums: !2, retainedTypes: !3, subprograms: !4, globals: !5, imports: !6, dwoId: 42) -!7 = !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang", - isOptimized: true, flags: "-O2", runtimeVersion: 2, - splitDebugFilename: "abc.debug", emissionKind: 3, - enums: !2, retainedTypes: !3, subprograms: !4, - globals: !5, imports: !6, dwoId: 42) -!8 = !DICompileUnit(language: 12, file: !1, producer: "clang", - isOptimized: true, flags: "-O2", runtimeVersion: 2, - splitDebugFilename: "abc.debug", emissionKind: 3, - enums: !2, retainedTypes: !3, subprograms: !4, - globals: !5, imports: !6, dwoId: 42) - -; CHECK: !8 = !DICompileUnit(language: DW_LANG_C99, file: !1, isOptimized: false, runtimeVersion: 0, emissionKind: 0) -!9 = !DICompileUnit(language: 12, file: !1, producer: "", - isOptimized: false, flags: "", runtimeVersion: 0, - splitDebugFilename: "", emissionKind: 0) -!10 = !DICompileUnit(language: 12, file: !1) diff --git a/test/Assembler/mdexpression.ll b/test/Assembler/mdexpression.ll deleted file mode 100644 index 31be86cef2d..00000000000 --- a/test/Assembler/mdexpression.ll +++ /dev/null @@ -1,16 +0,0 @@ -; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s -; RUN: verify-uselistorder %s - -; CHECK: !named = !{!0, !1, !2, !3, !4} -!named = !{!0, !1, !2, !3, !4} - -; CHECK: !0 = !DIExpression() -; CHECK-NEXT: !1 = !DIExpression(DW_OP_deref) -; CHECK-NEXT: !2 = !DIExpression(DW_OP_plus, 3) -; CHECK-NEXT: !3 = !DIExpression(DW_OP_bit_piece, 3, 7) -; CHECK-NEXT: !4 = !DIExpression(DW_OP_deref, DW_OP_plus, 3, DW_OP_bit_piece, 3, 7) -!0 = !DIExpression() -!1 = !DIExpression(DW_OP_deref) -!2 = !DIExpression(DW_OP_plus, 3) -!3 = !DIExpression(DW_OP_bit_piece, 3, 7) -!4 = !DIExpression(DW_OP_deref, DW_OP_plus, 3, DW_OP_bit_piece, 3, 7) diff --git a/test/Assembler/mdfile-escaped-chars.ll b/test/Assembler/mdfile-escaped-chars.ll deleted file mode 100644 index 5900fdca061..00000000000 --- a/test/Assembler/mdfile-escaped-chars.ll +++ /dev/null @@ -1,9 +0,0 @@ -; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s -; RUN: verify-uselistorder %s - -; Spot-check that metadata string fields are correctly escaped. - -!named = !{!0} - -; CHECK: !0 = !DIFile(filename: "\00\01\02\80\81\82\FD\FE\FF", directory: "/dir") -!0 = !DIFile(filename: "\00\01\02\80\81\82\FD\FE\FF", directory: "/dir") diff --git a/test/Assembler/mdglobalvariable.ll b/test/Assembler/mdglobalvariable.ll deleted file mode 100644 index 0d027d310f6..00000000000 --- a/test/Assembler/mdglobalvariable.ll +++ /dev/null @@ -1,27 +0,0 @@ -; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s -; RUN: verify-uselistorder %s - -@foo = global i32 0 - -; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9} -!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9} - -!0 = !DIFile(filename: "scope.h", directory: "/path/to/dir") -!1 = distinct !{} -!2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") -!3 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) -!4 = distinct !{} - -; CHECK: !5 = !DIGlobalVariable(name: "foo", linkageName: "foo", scope: !0, file: !2, line: 7, type: !3, isLocal: true, isDefinition: false, variable: i32* @foo) -!5 = !DIGlobalVariable(name: "foo", linkageName: "foo", scope: !0, - file: !2, line: 7, type: !3, isLocal: true, - isDefinition: false, variable: i32* @foo) - -; CHECK: !6 = !DIGlobalVariable(name: "foo", scope: !0, isLocal: false, isDefinition: true) -!6 = !DIGlobalVariable(name: "foo", scope: !0) - -!7 = !DICompositeType(tag: DW_TAG_structure_type, name: "Class", size: 8, align: 8) -!8 = !DIDerivedType(tag: DW_TAG_member, name: "mem", flags: DIFlagStaticMember, scope: !7, baseType: !3) - -; CHECK: !9 = !DIGlobalVariable(name: "mem", scope: !0, isLocal: false, isDefinition: true, declaration: !8) -!9 = !DIGlobalVariable(name: "mem", scope: !0, declaration: !8) diff --git a/test/Assembler/mdimportedentity.ll b/test/Assembler/mdimportedentity.ll deleted file mode 100644 index 929267e3b25..00000000000 --- a/test/Assembler/mdimportedentity.ll +++ /dev/null @@ -1,20 +0,0 @@ -; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s -; RUN: verify-uselistorder %s - -; CHECK: !named = !{!0, !1, !2, !3, !3} -!named = !{!0, !1, !2, !3, !4} - -; CHECK: !0 = !DISubprogram({{.*}}) -; CHECK-NEXT: !1 = !DICompositeType({{.*}}) -!0 = !DISubprogram(name: "foo") -!1 = !DICompositeType(tag: DW_TAG_structure_type, name: "Class", size: 32, align: 32) - -; CHECK-NEXT: !2 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "foo", scope: !0, entity: !1, line: 7) -!2 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "foo", scope: !0, - entity: !1, line: 7) - -; CHECK-NEXT: !3 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !0) -!3 = !DIImportedEntity(tag: DW_TAG_imported_module, scope: !0) -!4 = !DIImportedEntity(tag: DW_TAG_imported_module, name: "", scope: !0, entity: null, - line: 0) - diff --git a/test/Assembler/mdlexicalblock.ll b/test/Assembler/mdlexicalblock.ll deleted file mode 100644 index 2cab372384c..00000000000 --- a/test/Assembler/mdlexicalblock.ll +++ /dev/null @@ -1,25 +0,0 @@ -; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s -; RUN: verify-uselistorder %s - -; CHECK: !named = !{!0, !1, !2, !3, !4, !4, !5, !6, !7, !7} -!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9} - -!0 = distinct !{} -!1 = !DISubprogram(name: "foo", scope: !2) -!2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") - -; CHECK: !3 = !DILexicalBlock(scope: !1, file: !2, line: 7, column: 35) -!3 = !DILexicalBlock(scope: !1, file: !2, line: 7, column: 35) - -; CHECK: !4 = !DILexicalBlock(scope: !1) -!4 = !DILexicalBlock(scope: !1) -!5 = !DILexicalBlock(scope: !1, file: null, line: 0, column: 0) - -; CHECK: !5 = !DILexicalBlockFile(scope: !3, file: !2, discriminator: 0) -; CHECK: !6 = !DILexicalBlockFile(scope: !3, file: !2, discriminator: 1) -!6 = !DILexicalBlockFile(scope: !3, file: !2, discriminator: 0) -!7 = !DILexicalBlockFile(scope: !3, file: !2, discriminator: 1) - -; CHECK: !7 = !DILexicalBlockFile(scope: !3, discriminator: 7) -!8 = !DILexicalBlockFile(scope: !3, discriminator: 7) -!9 = !DILexicalBlockFile(scope: !3, file: null, discriminator: 7) diff --git a/test/Assembler/mdlocalvariable.ll b/test/Assembler/mdlocalvariable.ll deleted file mode 100644 index 312373ca862..00000000000 --- a/test/Assembler/mdlocalvariable.ll +++ /dev/null @@ -1,26 +0,0 @@ -; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s -; RUN: verify-uselistorder %s - -@foo = global i32 0 - -; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8} -!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8} - -!0 = distinct !DISubprogram() -!1 = distinct !{} -!2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") -!3 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) -!4 = !DILocation(scope: !0) - -; CHECK: !5 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "foo", arg: 3, scope: !0, file: !2, line: 7, type: !3, flags: DIFlagArtificial) -; CHECK: !6 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "foo", scope: !0, file: !2, line: 7, type: !3, flags: DIFlagArtificial) -!5 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "foo", arg: 3, - scope: !0, file: !2, line: 7, type: !3, - flags: DIFlagArtificial) -!6 = !DILocalVariable(tag: DW_TAG_auto_variable, name: "foo", scope: !0, - file: !2, line: 7, type: !3, flags: DIFlagArtificial) - -; CHECK: !7 = !DILocalVariable(tag: DW_TAG_arg_variable, arg: 0, scope: !0) -; CHECK: !8 = !DILocalVariable(tag: DW_TAG_auto_variable, scope: !0) -!7 = !DILocalVariable(tag: DW_TAG_arg_variable, scope: !0) -!8 = !DILocalVariable(tag: DW_TAG_auto_variable, scope: !0) diff --git a/test/Assembler/mdlocation.ll b/test/Assembler/mdlocation.ll deleted file mode 100644 index a468f8abe9c..00000000000 --- a/test/Assembler/mdlocation.ll +++ /dev/null @@ -1,23 +0,0 @@ -; RUN: llvm-as < %s | llvm-dis | FileCheck %s -; RUN: verify-uselistorder %s - -; CHECK: !named = !{!0, !1, !1, !2, !2, !3, !3, !4} -!named = !{!0, !1, !2, !3, !4, !5, !6, !7} - -; CHECK: !0 = !DISubprogram( -!0 = !DISubprogram() - -; CHECK-NEXT: !1 = !DILocation(line: 3, column: 7, scope: !0) -!1 = !DILocation(line: 3, column: 7, scope: !0) -!2 = !DILocation(scope: !0, column: 7, line: 3) - -; CHECK-NEXT: !2 = !DILocation(line: 3, column: 7, scope: !0, inlinedAt: !1) -!3 = !DILocation(scope: !0, inlinedAt: !1, column: 7, line: 3) -!4 = !DILocation(column: 7, line: 3, scope: !0, inlinedAt: !1) - -; CHECK-NEXT: !3 = !DILocation(line: 0, scope: !0) -!5 = !DILocation(scope: !0) -!6 = !DILocation(scope: !0, column: 0, line: 0) - -; CHECK-NEXT: !4 = !DILocation(line: 4294967295, column: 65535, scope: !0) -!7 = !DILocation(line: 4294967295, column: 65535, scope: !0) diff --git a/test/Assembler/mdnamespace.ll b/test/Assembler/mdnamespace.ll deleted file mode 100644 index 5d8b6b3fa7d..00000000000 --- a/test/Assembler/mdnamespace.ll +++ /dev/null @@ -1,16 +0,0 @@ -; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s -; RUN: verify-uselistorder %s - -; CHECK: !named = !{!0, !1, !2, !3, !4, !4} -!named = !{!0, !1, !2, !3, !4, !5} - -!0 = !DIFile(filename: "file.cpp", directory: "/path/to/dir") -!1 = distinct !{} -!2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") - -; CHECK: !3 = !DINamespace(name: "Namespace", scope: !0, file: !2, line: 7) -!3 = !DINamespace(name: "Namespace", scope: !0, file: !2, line: 7) - -; CHECK: !4 = !DINamespace(scope: !0) -!4 = !DINamespace(name: "", scope: !0, file: null, line: 0) -!5 = !DINamespace(scope: !0) diff --git a/test/Assembler/mdobjcproperty.ll b/test/Assembler/mdobjcproperty.ll deleted file mode 100644 index ca13e27662d..00000000000 --- a/test/Assembler/mdobjcproperty.ll +++ /dev/null @@ -1,19 +0,0 @@ -; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s -; RUN: verify-uselistorder %s - -; CHECK: !named = !{!0, !1, !2, !3, !4, !4} -!named = !{!0, !1, !2, !3, !4, !5} - -!0 = distinct !{} -!1 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") -!2 = !DICompositeType(tag: DW_TAG_structure_type, name: "Object") - -; CHECK: !2 = !DICompositeType({{.*}}) -; CHECK-NEXT: !3 = !DIObjCProperty(name: "foo", file: !1, line: 7, setter: "setFoo", getter: "getFoo", attributes: 7, type: !2) -!3 = !DIObjCProperty(name: "foo", file: !1, line: 7, setter: "setFoo", - getter: "getFoo", attributes: 7, type: !2) - -; CHECK-NEXT: !4 = !DIObjCProperty() -!4 = !DIObjCProperty(name: "", file: null, line: 0, setter: "", getter: "", - attributes: 0, type: null) -!5 = !DIObjCProperty() diff --git a/test/Assembler/mdsubprogram.ll b/test/Assembler/mdsubprogram.ll deleted file mode 100644 index 3fa1081889f..00000000000 --- a/test/Assembler/mdsubprogram.ll +++ /dev/null @@ -1,28 +0,0 @@ -; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s -; RUN: verify-uselistorder %s - -declare void @_Z3foov() - -; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9} -!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9} - -!0 = !{null} -!1 = distinct !DICompositeType(tag: DW_TAG_structure_type) -!2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir") -!3 = !DISubroutineType(types: !0) -!4 = distinct !DICompositeType(tag: DW_TAG_structure_type) -!5 = distinct !{} -!6 = distinct !DISubprogram(isDefinition: false) -!7 = distinct !{} - -; CHECK: !8 = !DISubprogram(name: "foo", linkageName: "_Zfoov", scope: !1, file: !2, line: 7, type: !3, isLocal: true, isDefinition: false, scopeLine: 8, containingType: !4, virtuality: DW_VIRTUALITY_pure_virtual, virtualIndex: 10, flags: DIFlagPrototyped, isOptimized: true, function: void ()* @_Z3foov, templateParams: !5, declaration: !6, variables: !7) -!8 = !DISubprogram(name: "foo", linkageName: "_Zfoov", scope: !1, - file: !2, line: 7, type: !3, isLocal: true, - isDefinition: false, scopeLine: 8, containingType: !4, - virtuality: DW_VIRTUALITY_pure_virtual, virtualIndex: 10, - flags: DIFlagPrototyped, isOptimized: true, function: void ()* @_Z3foov, - templateParams: !5, declaration: !6, variables: !7) - -; CHECK: !9 = !DISubprogram(scope: null, isLocal: false, isDefinition: true, isOptimized: false) -!9 = !DISubprogram() - diff --git a/test/Assembler/mdsubrange-empty-array.ll b/test/Assembler/mdsubrange-empty-array.ll deleted file mode 100644 index 7b5279e3d3c..00000000000 --- a/test/Assembler/mdsubrange-empty-array.ll +++ /dev/null @@ -1,14 +0,0 @@ -; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s -; RUN: verify-uselistorder %s - -; CHECK: !named = !{!0, !0, !1, !2} -!named = !{!0, !1, !2, !3} - -; CHECK: !0 = !DISubrange(count: -1) -; CHECK-NEXT: !1 = !DISubrange(count: -1, lowerBound: 4) -; CHECK-NEXT: !2 = !DISubrange(count: -1, lowerBound: -5) -!0 = !DISubrange(count: -1) -!1 = !DISubrange(count: -1, lowerBound: 0) - -!2 = !DISubrange(count: -1, lowerBound: 4) -!3 = !DISubrange(count: -1, lowerBound: -5) diff --git a/test/Assembler/mdsubroutinetype.ll b/test/Assembler/mdsubroutinetype.ll deleted file mode 100644 index 4ec2be7de3b..00000000000 --- a/test/Assembler/mdsubroutinetype.ll +++ /dev/null @@ -1,23 +0,0 @@ -; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s -; RUN: verify-uselistorder %s - -; CHECK: !named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8} -!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8} - -!0 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) -!1 = !{null} -!2 = !{null, !0} -!3 = !{!0, !0, !0} - - -; CHECK: !4 = !DISubroutineType(types: !1) -; CHECK: !5 = !DISubroutineType(types: !2) -; CHECK: !6 = !DISubroutineType(types: !3) -; CHECK: !7 = !DISubroutineType(flags: DIFlagLValueReference, types: !3) -!4 = !DISubroutineType(types: !1) -!5 = !DISubroutineType(types: !2) -!6 = !DISubroutineType(types: !3) -!7 = !DISubroutineType(flags: DIFlagLValueReference, types: !3) - -; CHECK: !8 = !DISubroutineType(types: null) -!8 = !DISubroutineType(types: null) diff --git a/test/Assembler/mdtemplateparameter.ll b/test/Assembler/mdtemplateparameter.ll deleted file mode 100644 index a356ad4e7bc..00000000000 --- a/test/Assembler/mdtemplateparameter.ll +++ /dev/null @@ -1,24 +0,0 @@ -; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s -; RUN: verify-uselistorder %s - -; CHECK: !named = !{!0, !1, !2, !3, !3, !4, !5, !5, !6} -!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8} - -!0 = distinct !{} -!1 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) -; CHECK: !1 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed) - -; CHECK-NEXT: !2 = !DITemplateTypeParameter(name: "Ty", type: !1) -; CHECK-NEXT: !3 = !DITemplateTypeParameter(type: !1) -!2 = !DITemplateTypeParameter(name: "Ty", type: !1) -!3 = !DITemplateTypeParameter(type: !1) -!4 = !DITemplateTypeParameter(name: "", type: !1) - -; CHECK-NEXT: !4 = !DITemplateValueParameter(name: "V", type: !1, value: i32 7) -; CHECK-NEXT: !5 = !DITemplateValueParameter(type: !1, value: i32 7) -; CHECK-NEXT: !6 = !DITemplateValueParameter(tag: DW_TAG_GNU_template_template_param, name: "param", type: !1, value: !"template") -!5 = !DITemplateValueParameter(name: "V", type: !1, value: i32 7) -!6 = !DITemplateValueParameter(type: !1, value: i32 7) -!7 = !DITemplateValueParameter(tag: DW_TAG_template_value_parameter, - name: "", type: !1, value: i32 7) -!8 = !DITemplateValueParameter(tag: DW_TAG_GNU_template_template_param, name: "param", type: !1, value: !"template") diff --git a/test/Assembler/mdtype-large-values.ll b/test/Assembler/mdtype-large-values.ll deleted file mode 100644 index a371ac68f90..00000000000 --- a/test/Assembler/mdtype-large-values.ll +++ /dev/null @@ -1,12 +0,0 @@ -; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s -; RUN: verify-uselistorder %s - -; CHECK: !named = !{!0, !1, !2} -!named = !{!0, !1, !2} - -; CHECK: !0 = !DIBasicType(name: "name", size: 18446744073709551615, align: 18446744073709551614, encoding: DW_ATE_unsigned_char) -; CHECK-NEXT: !1 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !0, size: 18446744073709551615, align: 18446744073709551614, offset: 18446744073709551613) -; CHECK-NEXT: !2 = !DICompositeType(tag: DW_TAG_array_type, baseType: !0, size: 18446744073709551615, align: 18446744073709551614, offset: 18446744073709551613) -!0 = !DIBasicType(tag: DW_TAG_base_type, name: "name", size: 18446744073709551615, align: 18446744073709551614, encoding: DW_ATE_unsigned_char) -!1 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !0, size: 18446744073709551615, align: 18446744073709551614, offset: 18446744073709551613) -!2 = !DICompositeType(tag: DW_TAG_array_type, baseType: !0, size: 18446744073709551615, align: 18446744073709551614, offset: 18446744073709551613)