llvm.org GIT mirror llvm / 1ba9cfd
[MIR] Simplify and move MIR test Also fixes a Machine Verifier issue. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@345396 91177308-0d34-0410-b5e6-96231b3b80d8 Francis Visoiu Mistrih 2 years ago
2 changed file(s) with 13 addition(s) and 39 deletion(s). Raw diff Collapse all Expand all
+0
-39
test/CodeGen/Generic/zero-probability.mir less more
None # RUN: llc -o /dev/null %s
1 # REQUIRES: asserts
2 # Makes sure that having a probability of 0x00000000 to branch to a successor
3 # doesn't hit an APInt assert in the MIParser.
4
5 --- |
6 define i32 @main() local_unnamed_addr #0 {
7 entry:
8 ret i32 0
9
10 other:
11 ret i32 0
12 }
13
14 attributes #0 = { nounwind }
15
16 !llvm.module.flags = !{!0, !1}
17 !llvm.ident = !{!2}
18
19 !0 = !{i32 1, !"wchar_size", i32 4}
20 !1 = !{i32 7, !"PIC Level", i32 2}
21 !2 = !{!"clang version 6.0.0"}
22 !3 = !{!"branch_weights", i32 0, i32 -1}
23
24 ...
25 ---
26 name: main
27 alignment: 2
28 exposesReturnsTwice: false
29 legalized: false
30 regBankSelected: false
31 selected: false
32 tracksRegLiveness: true
33 body: |
34 bb.0.entry:
35 successors: %bb.1.other(0x00000000)
36 bb.1.other:
37
38 ...
0 # RUN: llc -run-pass=none -o /dev/null %s
1 # REQUIRES: asserts
2 # Makes sure that having a probability of 0x00000000 to branch to a successor
3 # doesn't hit an APInt assert in the MIParser.
4
5 ---
6 name: main
7 body: |
8 bb.0:
9 successors: %bb.1(0x00000000)
10 bb.1:
11
12 ...