brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.2 KiB · 2dbd682 Raw
52 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py2; RUN: llc < %s -mtriple=powerpc64le-unknown-unknown -mcpu=pwr8 \3; RUN:   -ppc-convert-rr-to-ri -verify-machineinstrs | FileCheck %s4define void @test(i32 zeroext %parts) {5; CHECK-LABEL: test:6; CHECK:       # %bb.0: # %entry7; CHECK-NEXT:    cmplwi 3, 18; CHECK-NEXT:    bnelr+ 09; CHECK-NEXT:  # %bb.1: # %test2.exit.us.unr-lcssa10; CHECK-NEXT:    ld 3, 0(3)11; CHECK-NEXT:    std 3, 0(3)12entry:13  br label %cond.end.i14 15cond.end.i:                                       ; preds = %entry16  %cmp18.i = icmp eq i32 %parts, 117  br i1 %cmp18.i, label %while.body.lr.ph.i.us.preheader, label %test3.exit.split18 19while.body.lr.ph.i.us.preheader:                  ; preds = %cond.end.i20  %0 = icmp eq i32 %parts, 121  br label %for.body.i62.us.preheader22 23for.body.i62.us.preheader:                        ; preds = %while.body.lr.ph.i.us.preheader24  br i1 %0, label %test2.exit.us.unr-lcssa, label %for.body.i62.us.preheader.new25 26for.body.i62.us.preheader.new:                    ; preds = %for.body.i62.us.preheader27  br label %for.body.i62.us28 29for.body.i62.us:                                  ; preds = %if.end.i.us.1, %for.body.i62.us.preheader.new30  %niter = phi i64 [ undef, %for.body.i62.us.preheader.new ], [ %niter.nsub.1, %if.end.i.us.1 ]31  %cmp8.i.us.1 = icmp uge i64 undef, 032  br label %if.end.i.us.133 34test2.exit.us.unr-lcssa: ; preds = %if.end.i.us.1, %for.body.i62.us.preheader35  %c.addr.036.i.us.unr = phi i64 [ 0, %for.body.i62.us.preheader ], [ %c.addr.1.i.us.1, %if.end.i.us.1 ]36  %1 = load i64, ptr undef, align 837  %tobool.i61.us.epil = icmp eq i64 %c.addr.036.i.us.unr, 038  %add.neg.i.us.epil.pn = select i1 %tobool.i61.us.epil, i64 %1, i64 039  %storemerge269 = sub i64 %add.neg.i.us.epil.pn, 040  store i64 %storemerge269, ptr undef, align 841  unreachable42 43test3.exit.split:             ; preds = %cond.end.i44  ret void45 46if.end.i.us.1:                                    ; preds = %for.body.i62.us47  %c.addr.1.i.us.1 = zext i1 %cmp8.i.us.1 to i6448  %niter.nsub.1 = add i64 %niter, -249  %niter.ncmp.1 = icmp eq i64 %niter.nsub.1, 050  br i1 %niter.ncmp.1, label %test2.exit.us.unr-lcssa, label %for.body.i62.us51}52