brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 93cd667 Raw
49 lines · plain
1# RUN: llc -mtriple=x86_64-linux-gnu -run-pass=instruction-select -verify-machineinstrs %s -o - | FileCheck %s --check-prefixes=CHECK2 3--- |4 5  define i32 @test(i32 %a) {6  entry:7    %cmp = trunc i32 %a to i18    br i1 %cmp, label %true, label %false9 10  true:                                             ; preds = %entry11    ret i32 012 13  false:                                            ; preds = %entry14    ret i32 115  }16 17...18---19name:            test20alignment:       1621legalized:       true22regBankSelected: true23registers: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: '' }28body:             |29  bb.1.entry:30    successors: %bb.2(0x40000000), %bb.3(0x40000000)31    liveins: $edi32 33    %0(s32) = COPY $edi34    %2(s32) = G_CONSTANT i32 035    %3(s32) = G_CONSTANT i32 136    %1(s1) = G_TRUNC %0(s32)37    G_BRCOND %1(s1), %bb.238    G_BR %bb.339 40  bb.2.true:41    $eax = COPY %2(s32)42    RET 0, implicit $eax43 44  bb.3.false:45    $eax = COPY %3(s32)46    RET 0, implicit $eax47 48...49