brintos

brintos / llvm-project-archived public Read only

0
0
Text · 982 B · b459075 Raw
42 lines · plain
1# RUN: llc -mtriple=aarch64-linux-gnu -run-pass peephole-opt -o - %s | FileCheck %s2# CHECK: %1:gpr32common = ANDWri {{.*}}3# CHECK-NEXT: $wzr = SUBSWri {{.*}}4--- |5  define i32 @test01() nounwind {6  entry:7    %0 = select i1 true, i32 1, i32 08    %1 = and i32 %0, 655359    %2 = icmp ugt i32 %1, 010    br i1 %2, label %if.then, label %if.end11 12  if.then:                                      ; preds = %entry13    ret i32 114 15  if.end:                                       ; preds = %entry16    ret i32 017  }18...19---20name:            test0121registers:22  - { id: 0, class: gpr32 }23  - { id: 1, class: gpr32common }24body:             |25  bb.0.entry:26    successors: %bb.2.if.end, %bb.1.if.then27 28    %0 = MOVi32imm 129    %1 = ANDWri killed %1, 1530    $wzr = SUBSWri killed %1, 0, 0, implicit-def $nzcv31    Bcc 9, %bb.2.if.end, implicit $nzcv32 33  bb.1.if.then:34    $w0 = MOVi32imm 135    RET_ReallyLR implicit $w036 37  bb.2.if.end:38    $w0 = MOVi32imm 039    RET_ReallyLR implicit $w040 41...42