~pali/+junk/llvm-toolchain-3.7

« back to all changes in this revision

Viewing changes to test/CodeGen/PowerPC/ctrloop-udivti3.ll

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2015-07-15 17:51:08 UTC
  • Revision ID: package-import@ubuntu.com-20150715175108-l8mynwovkx4zx697
Tags: upstream-3.7~+rc2
ImportĀ upstreamĀ versionĀ 3.7~+rc2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
; RUN: llc < %s -march=ppc64 | FileCheck %s
 
2
target datalayout = "E-m:e-i64:64-n32:64"
 
3
target triple = "powerpc64-unknown-linux-gnu"
 
4
 
 
5
; Function Attrs: nounwind
 
6
define hidden void @_mpd_shortdiv(i64 %n) #0 {
 
7
entry:
 
8
  br i1 undef, label %for.end, label %for.body.lr.ph
 
9
 
 
10
for.body.lr.ph:                                   ; preds = %entry
 
11
  br label %for.body
 
12
 
 
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
  %add.i = or i128 undef, undef
 
17
  %div.i = udiv i128 %add.i, 0
 
18
  %conv3.i11 = trunc i128 %div.i to i64
 
19
  store i64 %conv3.i11, i64* undef, align 8
 
20
  %cmp = icmp eq i64 %i.018, 0
 
21
  br i1 %cmp, label %for.end, label %for.body
 
22
 
 
23
for.end:                                          ; preds = %for.body, %entry
 
24
  ret void
 
25
}
 
26
 
 
27
; CHECK-LABEL: @_mpd_shortdiv
 
28
; CHECK-NOT: mtctr
 
29
 
 
30
attributes #0 = { nounwind }
 
31