1 ; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py
2 ; RUN: llc -verify-machineinstrs -mtriple=powerpc-unknown-linux-gnu \
3 ; RUN: -mcpu=pwr9 < %s | FileCheck %s
5 define dso_local void @test_no_inc(i32 signext %a) local_unnamed_addr nounwind align 2 {
6 ; CHECK-LABEL: test_no_inc:
7 ; CHECK: # %bb.0: # %entry
8 ; CHECK-NEXT: srawi 4, 3, 31
9 ; CHECK-NEXT: cmpwi 3, 0
12 ; CHECK-NEXT: andc 4, 3, 4
13 ; CHECK-NEXT: addi 5, 4, 1
14 ; CHECK-NEXT: b .LBB0_2
15 ; CHECK-NEXT: .p2align 5
16 ; CHECK-NEXT: .LBB0_1: # %for.cond.cleanup
18 ; CHECK-NEXT: stb 7, 0(5)
19 ; CHECK-NEXT: add 5, 5, 4
20 ; CHECK-NEXT: .LBB0_2: # %for.cond
22 ; CHECK-NEXT: bc 4, 1, .LBB0_1
23 ; CHECK-NEXT: # %bb.3: # %for.body.preheader
25 ; CHECK-NEXT: add 6, 3, 6
26 ; CHECK-NEXT: b .LBB0_1
28 %cmp10 = icmp sgt i32 %a, 0
31 for.cond: ; preds = %for.cond.cleanup, %entry
32 %g.0 = phi i32 [ 1, %entry ], [ %g.1.lcssa, %for.cond.cleanup ]
33 br i1 %cmp10, label %for.body.preheader, label %for.cond.cleanup
35 for.body.preheader: ; preds = %for.cond
37 br label %for.cond.cleanup
39 for.cond.cleanup: ; preds = %for.body.preheader, %for.cond
40 %g.1.lcssa = phi i32 [ %g.0, %for.cond ], [ %0, %for.body.preheader ]
41 %arrayidx5 = getelementptr inbounds i8, ptr null, i32 %g.1.lcssa
42 store i8 0, ptr %arrayidx5, align 1