1 # RUN: llc -mtriple=aarch64-linux-gnu -run-pass peephole-opt -o - %s | FileCheck %s
2 # CHECK: %1:gpr32common = ANDWri {{.*}}
3 # CHECK-NEXT: $wzr = SUBSWri {{.*}}
5 define i32 @test01() nounwind {
7 %0 = select i1 true, i32 1, i32 0
9 %2 = icmp ugt i32 %1, 0
10 br i1 %2, label %if.then, label %if.end
12 if.then: ; preds = %entry
15 if.end: ; preds = %entry
22 - { id: 0, class: gpr32 }
23 - { id: 1, class: gpr32common }
26 successors: %bb.2.if.end, %bb.1.if.then
29 %1 = ANDWri killed %1, 15
30 $wzr = SUBSWri killed %1, 0, 0, implicit-def $nzcv
31 Bcc 9, %bb.2.if.end, implicit $nzcv
35 RET_ReallyLR implicit $w0
39 RET_ReallyLR implicit $w0