Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / llvm / test / CodeGen / X86 / GlobalISel / select-br.mir
blob7872b7859264d88c8fcbf0b35839c72aff11837a
1 # RUN: llc -mtriple=x86_64-linux-gnu    -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
2 # RUN: llc -mtriple=i386-linux-gnu      -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s
4 --- |
5   define void @uncondbr() {
6   entry:
7     br label %bb2
9   end:                                              ; preds = %bb2
10     ret void
12   bb2:                                              ; preds = %entry
13     br label %end
14   }
16 ...
17 ---
18 name:            uncondbr
19 # CHECK-LABEL: name:  uncondbr
20 alignment:       16
21 legalized:       true
22 regBankSelected: true
23 # CHECK:     JMP_1 %bb.2
24 # CHECK:     JMP_1 %bb.1
25 body:             |
26   bb.1.entry:
27     successors: %bb.3(0x80000000)
29     G_BR %bb.3
31   bb.2.end:
32     RET 0
34   bb.3.bb2:
35     successors: %bb.2(0x80000000)
37     G_BR %bb.2
39 ...