1 # RUN: llc -mtriple=x86_64-linux-gnu -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s --check-prefixes=CHECK
5 define i32 @test(i32 %a) {
7 %cmp = trunc i32 %a to i1
8 br i1 %cmp, label %true, label %false
10 true: ; preds = %entry
13 false: ; preds = %entry
24 - { id: 0, class: gpr, preferred-register: '' }
25 - { id: 1, class: gpr, preferred-register: '' }
26 - { id: 2, class: gpr, preferred-register: '' }
27 - { id: 3, class: gpr, preferred-register: '' }
30 successors: %bb.2(0x40000000), %bb.3(0x40000000)
34 %2(s32) = G_CONSTANT i32 0
35 %3(s32) = G_CONSTANT i32 1
36 %1(s1) = G_TRUNC %0(s32)
37 G_BRCOND %1(s1), %bb.2