don't repeat function names in comments; NFC
[oota-llvm.git] / test / CodeGen / MIR / X86 / successor-basic-blocks-many-weights.mir
1 # RUN: not llc -march=x86-64 -start-after branch-folder -stop-after branch-folder -o /dev/null %s 2>&1 | FileCheck %s
2
3 --- |
4
5   define i32 @foo(i32 %a) {
6   entry:
7     %0 = icmp sle i32 %a, 10
8     br i1 %0, label %less, label %exit
9
10   less:
11     ret i32 0
12
13   exit:
14     ret i32 %a
15   }
16
17 ...
18 ---
19 name:            foo
20 body:
21   - id:          0
22     name:        entry
23     successors:  [ '%bb.1.less', '%bb.2.exit' ]
24 # CHECK: [[@LINE+1]]:28: too many successor weights, expected 2, have 3
25     weights:     [ 16, 16, 16 ]
26     liveins:     [ '%edi' ]
27     instructions:
28       - 'CMP32ri8 %edi, 10, implicit-def %eflags'
29       - 'JG_1 %bb.2.exit, implicit killed %eflags'
30   - id:          1
31     name:        less
32     instructions:
33       - '%eax = MOV32r0 implicit-def dead %eflags'
34       - 'RETQ killed %eax'
35   - id:          2
36     name:        exit
37     liveins:     [ '%edi' ]
38     instructions:
39       - '%eax = COPY killed %edi'
40       - 'RETQ killed %eax'
41 ...