1# RUN: llc -o /dev/null %s
2# REQUIRES: asserts
3# Makes sure that having a probability of 0x00000000 to branch to a successor
4# doesn't hit an APInt assert in the MIParser.
5
6--- |
7  define i32 @main() local_unnamed_addr #0 {
8  entry:
9    ret i32 0
10
11  other:
12    ret i32 0
13  }
14
15  attributes #0 = { nounwind }
16
17  !llvm.module.flags = !{!0, !1}
18  !llvm.ident = !{!2}
19
20  !0 = !{i32 1, !"wchar_size", i32 4}
21  !1 = !{i32 7, !"PIC Level", i32 2}
22  !2 = !{!"clang version 6.0.0"}
23  !3 = !{!"branch_weights", i32 0, i32 -1}
24
25...
26---
27name:            main
28alignment:       2
29exposesReturnsTwice: false
30legalized:       false
31regBankSelected: false
32selected:        false
33tracksRegLiveness: true
34body:             |
35  bb.0.entry:
36    successors: %bb.1.other(0x00000000)
37  bb.1.other:
38
39...
40