1 ; RUN: not llvm-as -disable-output --verify-noalias-scope-decl-dom < %s 2>&1 | FileCheck %s
3 define void @test_single_scope01() nounwind ssp {
4 tail call void @llvm.experimental.noalias.scope.decl(metadata !2)
8 define void @test_single_scope02() nounwind ssp {
9 tail call void @llvm.experimental.noalias.scope.decl(metadata !5)
12 ; CHECK: !id.scope.list must point to a list with a single scope
13 ; CHECK-NEXT: tail call void @llvm.experimental.noalias.scope.decl(metadata !5)
15 define void @test_single_scope03() nounwind ssp {
16 tail call void @llvm.experimental.noalias.scope.decl(metadata !"test")
19 ; CHECK-NEXT: !id.scope.list must point to an MDNode
20 ; CHECK-NEXT: tail call void @llvm.experimental.noalias.scope.decl(metadata !"test")
22 define void @test_dom01() nounwind ssp {
23 tail call void @llvm.experimental.noalias.scope.decl(metadata !2)
24 tail call void @llvm.experimental.noalias.scope.decl(metadata !8)
28 define void @test_dom02() nounwind ssp {
29 tail call void @llvm.experimental.noalias.scope.decl(metadata !2)
30 tail call void @llvm.experimental.noalias.scope.decl(metadata !6)
33 ; CHECK-NEXT: llvm.experimental.noalias.scope.decl dominates another one with the same scope
34 ; CHECK-NEXT: tail call void @llvm.experimental.noalias.scope.decl(metadata !2)
36 define void @test_dom03() nounwind ssp {
37 tail call void @llvm.experimental.noalias.scope.decl(metadata !2)
38 tail call void @llvm.experimental.noalias.scope.decl(metadata !2)
41 ; CHECK-NEXT: llvm.experimental.noalias.scope.decl dominates another one with the same scope
42 ; CHECK-NEXT: tail call void @llvm.experimental.noalias.scope.decl(metadata !2)
44 ; CHECK-NOT: llvm.experimental.noalias.scope.decl
46 ; Function Attrs: inaccessiblememonly nounwind
47 declare void @llvm.experimental.noalias.scope.decl(metadata) #1
49 attributes #1 = { inaccessiblememonly nounwind }
50 !llvm.module.flags = !{!0}
53 !0 = !{i32 1, !"wchar_size", i32 4}
56 !3 = distinct !{!3, !4, !"test: pA"}
57 !4 = distinct !{!4, !"test"}
60 !7 = distinct !{!7, !4, !"test: pB"}