brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · e022da1 Raw
40 lines · plain
1; RUN: llvm-as -disable-output <%s 2>&1 | FileCheck %s --implicit-check-not="attached to unexpected instruction kind"2;; Check that we allow intrinsics to have !DIAssignID attachments, but we do not3;; allow non-intrinsic calls to have them.4;; FIXME: Ideally we would also not allow non-store intrinsics, e.g. the5;; llvm.vp.load intrinsic in this test.6 7; CHECK: !DIAssignID attached to unexpected instruction kind8; CHECK-NEXT: call void @g()9 10declare void @g()11 12define void @f() !dbg !5 {13  call void @llvm.vp.store.v2i8.p0(<2 x i8> poison, ptr poison, <2 x i1> poison, i32 poison), !DIAssignID !614  call void @llvm.vp.scatter.v2i8.v2p0(<2 x i8> poison, <2 x ptr> poison, <2 x i1> poison, i32 poison), !DIAssignID !715  call void @llvm.experimental.vp.strided.store.v2i8.i64(<2 x i8> poison, ptr poison, i64 poison, <2 x i1> poison, i32 poison), !DIAssignID !816  call void @llvm.masked.store.v2i8.p0(<2 x i8> poison, ptr poison, i32 1, <2 x i1> poison), !DIAssignID !917  call void @llvm.masked.scatter.v2i8.v2p0(<2 x i8> poison, <2 x ptr> poison, i32 1, <2 x i1> poison), !DIAssignID !1018  %r = call <2 x i8> @llvm.vp.load.v2i8.p0(ptr poison, <2 x i1> poison, i32 poison), !DIAssignID !1119  call void @g(), !DIAssignID !1220  ret void21}22 23!llvm.module.flags = !{!0}24!llvm.dbg.cu = !{!1}25 26!0 = !{i32 2, !"Debug Info Version", i32 3}27!1 = distinct !DICompileUnit(language: DW_LANG_Swift, producer: "clang",28                             file: !2, emissionKind: 2)29!2 = !DIFile(filename: "path/to/file", directory: "/path/to/dir")30!3 = !{null}31!4 = !DISubroutineType(types: !3)32!5 = distinct !DISubprogram(name: "f", scope: !2, file: !2, line: 1, type: !4, scopeLine: 2, unit: !1)33!6 = distinct !DIAssignID()34!7 = distinct !DIAssignID()35!8 = distinct !DIAssignID()36!9 = distinct !DIAssignID()37!10 = distinct !DIAssignID()38!11 = distinct !DIAssignID()39!12 = distinct !DIAssignID()40