diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2015-06-09 19:06:30 +0000 |
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2015-06-09 19:06:30 +0000 |
| commit | 85d8b2bbe386bcfe669575d05b61482d7be07e5d (patch) | |
| tree | 1dc5e75ab222a9ead44c699eceafab7a6ca7b310 /test/Assembler | |
| parent | 5a5ac124e1efaf208671f01c46edb15f29ed2a0b (diff) | |
Notes
Diffstat (limited to 'test/Assembler')
| -rw-r--r-- | test/Assembler/dicompileunit.ll (renamed from test/Assembler/mdcompileunit.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/diexpression.ll (renamed from test/Assembler/mdexpression.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/difile-escaped-chars.ll (renamed from test/Assembler/mdfile-escaped-chars.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/diglobalvariable.ll (renamed from test/Assembler/mdglobalvariable.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/diimportedentity.ll (renamed from test/Assembler/mdimportedentity.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/dilexicalblock.ll (renamed from test/Assembler/mdlexicalblock.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/dilocalvariable-arg-large.ll | 10 | ||||
| -rw-r--r-- | test/Assembler/dilocalvariable.ll (renamed from test/Assembler/mdlocalvariable.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/dilocation.ll (renamed from test/Assembler/mdlocation.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/dinamespace.ll (renamed from test/Assembler/mdnamespace.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/diobjcproperty.ll (renamed from test/Assembler/mdobjcproperty.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/disubprogram.ll (renamed from test/Assembler/mdsubprogram.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/disubrange-empty-array.ll (renamed from test/Assembler/mdsubrange-empty-array.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/disubroutinetype.ll (renamed from test/Assembler/mdsubroutinetype.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/ditemplateparameter.ll (renamed from test/Assembler/mdtemplateparameter.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/ditype-large-values.ll (renamed from test/Assembler/mdtype-large-values.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/getelementptr.ll | 4 | ||||
| -rw-r--r-- | test/Assembler/invalid-dicompileunit-language-bad.ll (renamed from test/Assembler/invalid-mdcompileunit-language-bad.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dicompileunit-language-overflow.ll (renamed from test/Assembler/invalid-mdcompileunit-language-overflow.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dicompileunit-missing-language.ll (renamed from test/Assembler/invalid-mdcompileunit-missing-language.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dicompileunit-null-file.ll (renamed from test/Assembler/invalid-mdcompileunit-null-file.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dicompositetype-missing-tag.ll (renamed from test/Assembler/invalid-mdcompositetype-missing-tag.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-diderivedtype-missing-basetype.ll (renamed from test/Assembler/invalid-mdderivedtype-missing-basetype.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-diderivedtype-missing-tag.ll (renamed from test/Assembler/invalid-mdderivedtype-missing-tag.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dienumerator-missing-name.ll (renamed from test/Assembler/invalid-mdenumerator-missing-name.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dienumerator-missing-value.ll (renamed from test/Assembler/invalid-mdenumerator-missing-value.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-diexpression-large.ll (renamed from test/Assembler/invalid-mdexpression-large.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-diexpression-verify.ll (renamed from test/Assembler/invalid-mdexpression-verify.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-difile-missing-directory.ll (renamed from test/Assembler/invalid-mdfile-missing-directory.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-difile-missing-filename.ll (renamed from test/Assembler/invalid-mdfile-missing-filename.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-diglobalvariable-empty-name.ll (renamed from test/Assembler/invalid-mdglobalvariable-empty-name.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-diglobalvariable-missing-name.ll (renamed from test/Assembler/invalid-mdglobalvariable-missing-name.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-diimportedentity-missing-scope.ll (renamed from test/Assembler/invalid-mdimportedentity-missing-scope.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-diimportedentity-missing-tag.ll (renamed from test/Assembler/invalid-mdimportedentity-missing-tag.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dilexicalblock-missing-scope.ll (renamed from test/Assembler/invalid-mdlexicalblock-missing-scope.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dilexicalblock-null-scope.ll (renamed from test/Assembler/invalid-mdlexicalblock-null-scope.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dilexicalblockfile-missing-discriminator.ll (renamed from test/Assembler/invalid-mdlexicalblockfile-missing-discriminator.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dilexicalblockfile-missing-scope.ll (renamed from test/Assembler/invalid-mdlexicalblockfile-missing-scope.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dilexicalblockfile-null-scope.ll (renamed from test/Assembler/invalid-mdlexicalblockfile-null-scope.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dilocalvariable-arg-large.ll | 6 | ||||
| -rw-r--r-- | test/Assembler/invalid-dilocalvariable-arg-negative.ll | 6 | ||||
| -rw-r--r-- | test/Assembler/invalid-dilocalvariable-missing-scope.ll (renamed from test/Assembler/invalid-mdlocalvariable-missing-scope.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dilocalvariable-missing-tag.ll (renamed from test/Assembler/invalid-mdlocalvariable-missing-tag.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dilocalvariable-null-scope.ll (renamed from test/Assembler/invalid-mdlocalvariable-null-scope.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dilocation-field-bad.ll (renamed from test/Assembler/invalid-mdlocation-field-bad.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dilocation-field-twice.ll (renamed from test/Assembler/invalid-mdlocation-field-twice.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dilocation-missing-scope-2.ll (renamed from test/Assembler/invalid-mdlocation-missing-scope-2.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dilocation-missing-scope.ll (renamed from test/Assembler/invalid-mdlocation-missing-scope.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dilocation-null-scope.ll (renamed from test/Assembler/invalid-mdlocation-null-scope.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dilocation-overflow-column.ll (renamed from test/Assembler/invalid-mdlocation-overflow-column.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dilocation-overflow-line.ll (renamed from test/Assembler/invalid-mdlocation-overflow-line.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-dinamespace-missing-namespace.ll (renamed from test/Assembler/invalid-mdnamespace-missing-namespace.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-disubrange-count-large.ll (renamed from test/Assembler/invalid-mdsubrange-count-large.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-disubrange-count-missing.ll (renamed from test/Assembler/invalid-mdsubrange-count-missing.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-disubrange-count-negative.ll (renamed from test/Assembler/invalid-mdsubrange-count-negative.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-disubrange-lowerBound-max.ll (renamed from test/Assembler/invalid-mdsubrange-lowerBound-max.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-disubrange-lowerBound-min.ll (renamed from test/Assembler/invalid-mdsubrange-lowerBound-min.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-disubroutinetype-missing-types.ll (renamed from test/Assembler/invalid-mdsubroutinetype-missing-types.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-ditemplatetypeparameter-missing-type.ll (renamed from test/Assembler/invalid-mdtemplatetypeparameter-missing-type.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/invalid-ditemplatevalueparameter-missing-value.ll (renamed from test/Assembler/invalid-mdtemplatevalueparameter-missing-value.ll) | 0 | ||||
| -rw-r--r-- | test/Assembler/metadata.ll | 13 |
61 files changed, 36 insertions, 3 deletions
diff --git a/test/Assembler/mdcompileunit.ll b/test/Assembler/dicompileunit.ll index dc136f0b83e9..dc136f0b83e9 100644 --- a/test/Assembler/mdcompileunit.ll +++ b/test/Assembler/dicompileunit.ll diff --git a/test/Assembler/mdexpression.ll b/test/Assembler/diexpression.ll index 31be86cef2d4..31be86cef2d4 100644 --- a/test/Assembler/mdexpression.ll +++ b/test/Assembler/diexpression.ll diff --git a/test/Assembler/mdfile-escaped-chars.ll b/test/Assembler/difile-escaped-chars.ll index 5900fdca061d..5900fdca061d 100644 --- a/test/Assembler/mdfile-escaped-chars.ll +++ b/test/Assembler/difile-escaped-chars.ll diff --git a/test/Assembler/mdglobalvariable.ll b/test/Assembler/diglobalvariable.ll index 0d027d310f6d..0d027d310f6d 100644 --- a/test/Assembler/mdglobalvariable.ll +++ b/test/Assembler/diglobalvariable.ll diff --git a/test/Assembler/mdimportedentity.ll b/test/Assembler/diimportedentity.ll index 929267e3b25e..929267e3b25e 100644 --- a/test/Assembler/mdimportedentity.ll +++ b/test/Assembler/diimportedentity.ll diff --git a/test/Assembler/mdlexicalblock.ll b/test/Assembler/dilexicalblock.ll index 2cab372384ca..2cab372384ca 100644 --- a/test/Assembler/mdlexicalblock.ll +++ b/test/Assembler/dilexicalblock.ll diff --git a/test/Assembler/dilocalvariable-arg-large.ll b/test/Assembler/dilocalvariable-arg-large.ll new file mode 100644 index 000000000000..7788186a54ab --- /dev/null +++ b/test/Assembler/dilocalvariable-arg-large.ll @@ -0,0 +1,10 @@ +; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s +; RUN: verify-uselistorder %s + +; CHECK: !named = !{!0, !1} +!named = !{!0, !1} + +!0 = distinct !DISubprogram() + +; CHECK: !1 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "foo", arg: 65535, scope: !0) +!1 = !DILocalVariable(tag: DW_TAG_arg_variable, name: "foo", arg: 65535, scope: !0) diff --git a/test/Assembler/mdlocalvariable.ll b/test/Assembler/dilocalvariable.ll index 312373ca8623..312373ca8623 100644 --- a/test/Assembler/mdlocalvariable.ll +++ b/test/Assembler/dilocalvariable.ll diff --git a/test/Assembler/mdlocation.ll b/test/Assembler/dilocation.ll index a468f8abe9c6..a468f8abe9c6 100644 --- a/test/Assembler/mdlocation.ll +++ b/test/Assembler/dilocation.ll diff --git a/test/Assembler/mdnamespace.ll b/test/Assembler/dinamespace.ll index 5d8b6b3fa7d7..5d8b6b3fa7d7 100644 --- a/test/Assembler/mdnamespace.ll +++ b/test/Assembler/dinamespace.ll diff --git a/test/Assembler/mdobjcproperty.ll b/test/Assembler/diobjcproperty.ll index ca13e27662d4..ca13e27662d4 100644 --- a/test/Assembler/mdobjcproperty.ll +++ b/test/Assembler/diobjcproperty.ll diff --git a/test/Assembler/mdsubprogram.ll b/test/Assembler/disubprogram.ll index 3fa1081889ff..3fa1081889ff 100644 --- a/test/Assembler/mdsubprogram.ll +++ b/test/Assembler/disubprogram.ll diff --git a/test/Assembler/mdsubrange-empty-array.ll b/test/Assembler/disubrange-empty-array.ll index 7b5279e3d3c2..7b5279e3d3c2 100644 --- a/test/Assembler/mdsubrange-empty-array.ll +++ b/test/Assembler/disubrange-empty-array.ll diff --git a/test/Assembler/mdsubroutinetype.ll b/test/Assembler/disubroutinetype.ll index 4ec2be7de3b9..4ec2be7de3b9 100644 --- a/test/Assembler/mdsubroutinetype.ll +++ b/test/Assembler/disubroutinetype.ll diff --git a/test/Assembler/mdtemplateparameter.ll b/test/Assembler/ditemplateparameter.ll index a356ad4e7bc9..a356ad4e7bc9 100644 --- a/test/Assembler/mdtemplateparameter.ll +++ b/test/Assembler/ditemplateparameter.ll diff --git a/test/Assembler/mdtype-large-values.ll b/test/Assembler/ditype-large-values.ll index a371ac68f90a..a371ac68f90a 100644 --- a/test/Assembler/mdtype-large-values.ll +++ b/test/Assembler/ditype-large-values.ll diff --git a/test/Assembler/getelementptr.ll b/test/Assembler/getelementptr.ll index ee88346eb00b..0a0fddfc4dda 100644 --- a/test/Assembler/getelementptr.ll +++ b/test/Assembler/getelementptr.ll @@ -19,6 +19,10 @@ @y = global i32* getelementptr ({ i32, i32 }, { i32, i32 }* @x, i16 42, i32 0) ; CHECK: @y = global i32* getelementptr ({ i32, i32 }, { i32, i32 }* @x, i16 42, i32 0) +@PR23753_a = external global i8 +@PR23753_b = global i8* getelementptr (i8, i8* @PR23753_a, i64 ptrtoint (i8* @PR23753_a to i64)) +; CHECK: @PR23753_b = global i8* getelementptr (i8, i8* @PR23753_a, i64 ptrtoint (i8* @PR23753_a to i64)) + ; See if i92 indices work too. define i32 *@test({i32, i32}* %t, i92 %n) { ; CHECK: @test diff --git a/test/Assembler/invalid-mdcompileunit-language-bad.ll b/test/Assembler/invalid-dicompileunit-language-bad.ll index e6f49f3fba47..e6f49f3fba47 100644 --- a/test/Assembler/invalid-mdcompileunit-language-bad.ll +++ b/test/Assembler/invalid-dicompileunit-language-bad.ll diff --git a/test/Assembler/invalid-mdcompileunit-language-overflow.ll b/test/Assembler/invalid-dicompileunit-language-overflow.ll index c558f7aaa258..c558f7aaa258 100644 --- a/test/Assembler/invalid-mdcompileunit-language-overflow.ll +++ b/test/Assembler/invalid-dicompileunit-language-overflow.ll diff --git a/test/Assembler/invalid-mdcompileunit-missing-language.ll b/test/Assembler/invalid-dicompileunit-missing-language.ll index 15631b7f640b..15631b7f640b 100644 --- a/test/Assembler/invalid-mdcompileunit-missing-language.ll +++ b/test/Assembler/invalid-dicompileunit-missing-language.ll diff --git a/test/Assembler/invalid-mdcompileunit-null-file.ll b/test/Assembler/invalid-dicompileunit-null-file.ll index cc1892e91465..cc1892e91465 100644 --- a/test/Assembler/invalid-mdcompileunit-null-file.ll +++ b/test/Assembler/invalid-dicompileunit-null-file.ll diff --git a/test/Assembler/invalid-mdcompositetype-missing-tag.ll b/test/Assembler/invalid-dicompositetype-missing-tag.ll index e68c01479902..e68c01479902 100644 --- a/test/Assembler/invalid-mdcompositetype-missing-tag.ll +++ b/test/Assembler/invalid-dicompositetype-missing-tag.ll diff --git a/test/Assembler/invalid-mdderivedtype-missing-basetype.ll b/test/Assembler/invalid-diderivedtype-missing-basetype.ll index 308c2ea90ef1..308c2ea90ef1 100644 --- a/test/Assembler/invalid-mdderivedtype-missing-basetype.ll +++ b/test/Assembler/invalid-diderivedtype-missing-basetype.ll diff --git a/test/Assembler/invalid-mdderivedtype-missing-tag.ll b/test/Assembler/invalid-diderivedtype-missing-tag.ll index fd286f4c2960..fd286f4c2960 100644 --- a/test/Assembler/invalid-mdderivedtype-missing-tag.ll +++ b/test/Assembler/invalid-diderivedtype-missing-tag.ll diff --git a/test/Assembler/invalid-mdenumerator-missing-name.ll b/test/Assembler/invalid-dienumerator-missing-name.ll index 656d3439ba22..656d3439ba22 100644 --- a/test/Assembler/invalid-mdenumerator-missing-name.ll +++ b/test/Assembler/invalid-dienumerator-missing-name.ll diff --git a/test/Assembler/invalid-mdenumerator-missing-value.ll b/test/Assembler/invalid-dienumerator-missing-value.ll index 0eee3be41b6a..0eee3be41b6a 100644 --- a/test/Assembler/invalid-mdenumerator-missing-value.ll +++ b/test/Assembler/invalid-dienumerator-missing-value.ll diff --git a/test/Assembler/invalid-mdexpression-large.ll b/test/Assembler/invalid-diexpression-large.ll index 32b77ee51387..32b77ee51387 100644 --- a/test/Assembler/invalid-mdexpression-large.ll +++ b/test/Assembler/invalid-diexpression-large.ll diff --git a/test/Assembler/invalid-mdexpression-verify.ll b/test/Assembler/invalid-diexpression-verify.ll index 50d6943dead8..50d6943dead8 100644 --- a/test/Assembler/invalid-mdexpression-verify.ll +++ b/test/Assembler/invalid-diexpression-verify.ll diff --git a/test/Assembler/invalid-mdfile-missing-directory.ll b/test/Assembler/invalid-difile-missing-directory.ll index a54a22f2e189..a54a22f2e189 100644 --- a/test/Assembler/invalid-mdfile-missing-directory.ll +++ b/test/Assembler/invalid-difile-missing-directory.ll diff --git a/test/Assembler/invalid-mdfile-missing-filename.ll b/test/Assembler/invalid-difile-missing-filename.ll index 17bf3da3f7a3..17bf3da3f7a3 100644 --- a/test/Assembler/invalid-mdfile-missing-filename.ll +++ b/test/Assembler/invalid-difile-missing-filename.ll diff --git a/test/Assembler/invalid-mdglobalvariable-empty-name.ll b/test/Assembler/invalid-diglobalvariable-empty-name.ll index a4e69f3c8b75..a4e69f3c8b75 100644 --- a/test/Assembler/invalid-mdglobalvariable-empty-name.ll +++ b/test/Assembler/invalid-diglobalvariable-empty-name.ll diff --git a/test/Assembler/invalid-mdglobalvariable-missing-name.ll b/test/Assembler/invalid-diglobalvariable-missing-name.ll index baf4d73d94f4..baf4d73d94f4 100644 --- a/test/Assembler/invalid-mdglobalvariable-missing-name.ll +++ b/test/Assembler/invalid-diglobalvariable-missing-name.ll diff --git a/test/Assembler/invalid-mdimportedentity-missing-scope.ll b/test/Assembler/invalid-diimportedentity-missing-scope.ll index 06164e88d9b3..06164e88d9b3 100644 --- a/test/Assembler/invalid-mdimportedentity-missing-scope.ll +++ b/test/Assembler/invalid-diimportedentity-missing-scope.ll diff --git a/test/Assembler/invalid-mdimportedentity-missing-tag.ll b/test/Assembler/invalid-diimportedentity-missing-tag.ll index 996b1ffdc9bf..996b1ffdc9bf 100644 --- a/test/Assembler/invalid-mdimportedentity-missing-tag.ll +++ b/test/Assembler/invalid-diimportedentity-missing-tag.ll diff --git a/test/Assembler/invalid-mdlexicalblock-missing-scope.ll b/test/Assembler/invalid-dilexicalblock-missing-scope.ll index 6108e692b21c..6108e692b21c 100644 --- a/test/Assembler/invalid-mdlexicalblock-missing-scope.ll +++ b/test/Assembler/invalid-dilexicalblock-missing-scope.ll diff --git a/test/Assembler/invalid-mdlexicalblock-null-scope.ll b/test/Assembler/invalid-dilexicalblock-null-scope.ll index 7457b6085d61..7457b6085d61 100644 --- a/test/Assembler/invalid-mdlexicalblock-null-scope.ll +++ b/test/Assembler/invalid-dilexicalblock-null-scope.ll diff --git a/test/Assembler/invalid-mdlexicalblockfile-missing-discriminator.ll b/test/Assembler/invalid-dilexicalblockfile-missing-discriminator.ll index bd8395ccf4df..bd8395ccf4df 100644 --- a/test/Assembler/invalid-mdlexicalblockfile-missing-discriminator.ll +++ b/test/Assembler/invalid-dilexicalblockfile-missing-discriminator.ll diff --git a/test/Assembler/invalid-mdlexicalblockfile-missing-scope.ll b/test/Assembler/invalid-dilexicalblockfile-missing-scope.ll index fd037501c40a..fd037501c40a 100644 --- a/test/Assembler/invalid-mdlexicalblockfile-missing-scope.ll +++ b/test/Assembler/invalid-dilexicalblockfile-missing-scope.ll diff --git a/test/Assembler/invalid-mdlexicalblockfile-null-scope.ll b/test/Assembler/invalid-dilexicalblockfile-null-scope.ll index ae1a5d432e3d..ae1a5d432e3d 100644 --- a/test/Assembler/invalid-mdlexicalblockfile-null-scope.ll +++ b/test/Assembler/invalid-dilexicalblockfile-null-scope.ll diff --git a/test/Assembler/invalid-dilocalvariable-arg-large.ll b/test/Assembler/invalid-dilocalvariable-arg-large.ll new file mode 100644 index 000000000000..d62da601e13c --- /dev/null +++ b/test/Assembler/invalid-dilocalvariable-arg-large.ll @@ -0,0 +1,6 @@ +; RUN: not llvm-as < %s 2>&1 | FileCheck %s + +!0 = !DILocalVariable(tag: DW_TAG_arg_variable, scope: !{}, arg: 65535) + +; CHECK: <stdin>:[[@LINE+1]]:66: error: value for 'arg' too large, limit is 65535 +!1 = !DILocalVariable(tag: DW_TAG_arg_variable, scope: !{}, arg: 65536) diff --git a/test/Assembler/invalid-dilocalvariable-arg-negative.ll b/test/Assembler/invalid-dilocalvariable-arg-negative.ll new file mode 100644 index 000000000000..08e370a36660 --- /dev/null +++ b/test/Assembler/invalid-dilocalvariable-arg-negative.ll @@ -0,0 +1,6 @@ +; RUN: not llvm-as < %s 2>&1 | FileCheck %s + +!0 = !DILocalVariable(tag: DW_TAG_arg_variable, scope: !{}, arg: 0) + +; CHECK: <stdin>:[[@LINE+1]]:66: error: expected unsigned integer +!1 = !DILocalVariable(tag: DW_TAG_arg_variable, scope: !{}, arg: -1) diff --git a/test/Assembler/invalid-mdlocalvariable-missing-scope.ll b/test/Assembler/invalid-dilocalvariable-missing-scope.ll index 45dcad713609..45dcad713609 100644 --- a/test/Assembler/invalid-mdlocalvariable-missing-scope.ll +++ b/test/Assembler/invalid-dilocalvariable-missing-scope.ll diff --git a/test/Assembler/invalid-mdlocalvariable-missing-tag.ll b/test/Assembler/invalid-dilocalvariable-missing-tag.ll index 18062edf75bd..18062edf75bd 100644 --- a/test/Assembler/invalid-mdlocalvariable-missing-tag.ll +++ b/test/Assembler/invalid-dilocalvariable-missing-tag.ll diff --git a/test/Assembler/invalid-mdlocalvariable-null-scope.ll b/test/Assembler/invalid-dilocalvariable-null-scope.ll index 859412a2568c..859412a2568c 100644 --- a/test/Assembler/invalid-mdlocalvariable-null-scope.ll +++ b/test/Assembler/invalid-dilocalvariable-null-scope.ll diff --git a/test/Assembler/invalid-mdlocation-field-bad.ll b/test/Assembler/invalid-dilocation-field-bad.ll index e68aa45b03eb..e68aa45b03eb 100644 --- a/test/Assembler/invalid-mdlocation-field-bad.ll +++ b/test/Assembler/invalid-dilocation-field-bad.ll diff --git a/test/Assembler/invalid-mdlocation-field-twice.ll b/test/Assembler/invalid-dilocation-field-twice.ll index d1dab68246c1..d1dab68246c1 100644 --- a/test/Assembler/invalid-mdlocation-field-twice.ll +++ b/test/Assembler/invalid-dilocation-field-twice.ll diff --git a/test/Assembler/invalid-mdlocation-missing-scope-2.ll b/test/Assembler/invalid-dilocation-missing-scope-2.ll index 380e3fde94f6..380e3fde94f6 100644 --- a/test/Assembler/invalid-mdlocation-missing-scope-2.ll +++ b/test/Assembler/invalid-dilocation-missing-scope-2.ll diff --git a/test/Assembler/invalid-mdlocation-missing-scope.ll b/test/Assembler/invalid-dilocation-missing-scope.ll index fb0cd866dc16..fb0cd866dc16 100644 --- a/test/Assembler/invalid-mdlocation-missing-scope.ll +++ b/test/Assembler/invalid-dilocation-missing-scope.ll diff --git a/test/Assembler/invalid-mdlocation-null-scope.ll b/test/Assembler/invalid-dilocation-null-scope.ll index 38c59e15d15a..38c59e15d15a 100644 --- a/test/Assembler/invalid-mdlocation-null-scope.ll +++ b/test/Assembler/invalid-dilocation-null-scope.ll diff --git a/test/Assembler/invalid-mdlocation-overflow-column.ll b/test/Assembler/invalid-dilocation-overflow-column.ll index 043f84d3ab21..043f84d3ab21 100644 --- a/test/Assembler/invalid-mdlocation-overflow-column.ll +++ b/test/Assembler/invalid-dilocation-overflow-column.ll diff --git a/test/Assembler/invalid-mdlocation-overflow-line.ll b/test/Assembler/invalid-dilocation-overflow-line.ll index 7a6774231a97..7a6774231a97 100644 --- a/test/Assembler/invalid-mdlocation-overflow-line.ll +++ b/test/Assembler/invalid-dilocation-overflow-line.ll diff --git a/test/Assembler/invalid-mdnamespace-missing-namespace.ll b/test/Assembler/invalid-dinamespace-missing-namespace.ll index c29391b125d7..c29391b125d7 100644 --- a/test/Assembler/invalid-mdnamespace-missing-namespace.ll +++ b/test/Assembler/invalid-dinamespace-missing-namespace.ll diff --git a/test/Assembler/invalid-mdsubrange-count-large.ll b/test/Assembler/invalid-disubrange-count-large.ll index 003274f3a072..003274f3a072 100644 --- a/test/Assembler/invalid-mdsubrange-count-large.ll +++ b/test/Assembler/invalid-disubrange-count-large.ll diff --git a/test/Assembler/invalid-mdsubrange-count-missing.ll b/test/Assembler/invalid-disubrange-count-missing.ll index 8fc4487117f6..8fc4487117f6 100644 --- a/test/Assembler/invalid-mdsubrange-count-missing.ll +++ b/test/Assembler/invalid-disubrange-count-missing.ll diff --git a/test/Assembler/invalid-mdsubrange-count-negative.ll b/test/Assembler/invalid-disubrange-count-negative.ll index f2ad4c302cb2..f2ad4c302cb2 100644 --- a/test/Assembler/invalid-mdsubrange-count-negative.ll +++ b/test/Assembler/invalid-disubrange-count-negative.ll diff --git a/test/Assembler/invalid-mdsubrange-lowerBound-max.ll b/test/Assembler/invalid-disubrange-lowerBound-max.ll index e163dc47804d..e163dc47804d 100644 --- a/test/Assembler/invalid-mdsubrange-lowerBound-max.ll +++ b/test/Assembler/invalid-disubrange-lowerBound-max.ll diff --git a/test/Assembler/invalid-mdsubrange-lowerBound-min.ll b/test/Assembler/invalid-disubrange-lowerBound-min.ll index 1dc3a141a576..1dc3a141a576 100644 --- a/test/Assembler/invalid-mdsubrange-lowerBound-min.ll +++ b/test/Assembler/invalid-disubrange-lowerBound-min.ll diff --git a/test/Assembler/invalid-mdsubroutinetype-missing-types.ll b/test/Assembler/invalid-disubroutinetype-missing-types.ll index 086e5cc593ec..086e5cc593ec 100644 --- a/test/Assembler/invalid-mdsubroutinetype-missing-types.ll +++ b/test/Assembler/invalid-disubroutinetype-missing-types.ll diff --git a/test/Assembler/invalid-mdtemplatetypeparameter-missing-type.ll b/test/Assembler/invalid-ditemplatetypeparameter-missing-type.ll index 797abd2c3044..797abd2c3044 100644 --- a/test/Assembler/invalid-mdtemplatetypeparameter-missing-type.ll +++ b/test/Assembler/invalid-ditemplatetypeparameter-missing-type.ll diff --git a/test/Assembler/invalid-mdtemplatevalueparameter-missing-value.ll b/test/Assembler/invalid-ditemplatevalueparameter-missing-value.ll index 883bea1c9ad2..883bea1c9ad2 100644 --- a/test/Assembler/invalid-mdtemplatevalueparameter-missing-value.ll +++ b/test/Assembler/invalid-ditemplatevalueparameter-missing-value.ll diff --git a/test/Assembler/metadata.ll b/test/Assembler/metadata.ll index 4fb8851a9f40..052ac1b5097e 100644 --- a/test/Assembler/metadata.ll +++ b/test/Assembler/metadata.ll @@ -1,7 +1,7 @@ ; RUN: llvm-as < %s | llvm-dis | llvm-as | llvm-dis | FileCheck %s ; RUN: verify-uselistorder %s -; CHECK: @test +; CHECK-LABEL: @test ; CHECK: ret void, !bar !1, !foo !0 define void @test() { add i32 2, 1, !bar !0 @@ -11,17 +11,24 @@ define void @test() { ret void, !foo !0, !bar !1 } -; CHECK: define void @test2() !foo !2 !baz !3 +; CHECK-LABEL: define void @test2() !foo !2 !baz !3 define void @test2() !foo !2 !baz !3 { unreachable } -; CHECK: define void @test3() !bar !3 +; CHECK-LABEL: define void @test3() !bar !3 ; CHECK: unreachable, !bar !4 define void @test3() !bar !3 { unreachable, !bar !4 } +; CHECK-LABEL: define void @test_attachment_name() { +; CHECK: unreachable, !\342abc !4 +define void @test_attachment_name() { + ;; Escape the first character when printing text IR, since it's a digit + unreachable, !\34\32abc !4 +} + !0 = !DILocation(line: 662302, column: 26, scope: !1) !1 = !DISubprogram(name: "foo") !2 = distinct !{} |
