1 ; RUN: llc -verify-machineinstrs < %s | FileCheck %s
2 target datalayout = "E-m:e-i64:64-n32:64"
3 target triple = "powerpc64-unknown-linux-gnu"
5 ; Function Attrs: nounwind
6 define hidden void @_mpd_shortdiv(i64 %n) #0 {
8 br i1 undef, label %for.end, label %for.body.lr.ph
10 for.body.lr.ph: ; preds = %entry
13 for.body: ; preds = %for.body, %for.body.lr.ph
14 %i.018.in = phi i64 [ %n, %for.body.lr.ph ], [ %i.018, %for.body ]
15 %i.018 = add i64 %i.018.in, -1
16 %jj = sext i64 %i.018 to i128
17 %add.i = or i128 %jj, undef
18 %div.i = udiv i128 %add.i, %jj
19 %conv3.i11 = trunc i128 %div.i to i64
20 store i64 %conv3.i11, ptr undef, align 8
21 %cmp = icmp eq i64 %i.018, 0
22 br i1 %cmp, label %for.end, label %for.body
24 for.end: ; preds = %for.body, %entry
28 ; CHECK-LABEL: @_mpd_shortdiv
31 attributes #0 = { nounwind }