xref: /aosp_15_r20/external/llvm/test/Assembler/distinct-mdnode.ll (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker; RUN: llvm-as < %s | llvm-dis | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker; RUN: verify-uselistorder %s
3*9880d681SAndroid Build Coastguard Worker
4*9880d681SAndroid Build Coastguard Worker!named = !{!0, !1, !2, !3, !4, !5, !6, !7, !8, !9, !10}
5*9880d681SAndroid Build Coastguard Worker
6*9880d681SAndroid Build Coastguard Worker!0 = !{}
7*9880d681SAndroid Build Coastguard Worker!1 = !{}   ; This should merge with !0.
8*9880d681SAndroid Build Coastguard Worker!2 = !{!0}
9*9880d681SAndroid Build Coastguard Worker!3 = !{!0} ; This should merge with !2.
10*9880d681SAndroid Build Coastguard Worker!4 = distinct !{}
11*9880d681SAndroid Build Coastguard Worker!5 = distinct !{}
12*9880d681SAndroid Build Coastguard Worker!6 = distinct !{!0}
13*9880d681SAndroid Build Coastguard Worker!7 = distinct !{!0}
14*9880d681SAndroid Build Coastguard Worker!8 = distinct !{!8}
15*9880d681SAndroid Build Coastguard Worker!9 = distinct !{!9}
16*9880d681SAndroid Build Coastguard Worker!10 = !{!10} ; This should become distinct.
17*9880d681SAndroid Build Coastguard Worker
18*9880d681SAndroid Build Coastguard Worker; CHECK: !named = !{!0, !0, !1, !1, !2, !3, !4, !5, !6, !7, !8}
19*9880d681SAndroid Build Coastguard Worker; CHECK:      !0 = !{}
20*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: !1 = !{!0}
21*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: !2 = distinct !{}
22*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: !3 = distinct !{}
23*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: !4 = distinct !{!0}
24*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: !5 = distinct !{!0}
25*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: !6 = distinct !{!6}
26*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: !7 = distinct !{!7}
27*9880d681SAndroid Build Coastguard Worker; CHECK-NEXT: !8 = distinct !{!8}
28*9880d681SAndroid Build Coastguard Worker; CHECK-NOT:  !
29