Debian Codegraph @

llvm/test/CodeGen/PowerPC/sj-ctr-loop.ll

raw
1 ; RUN: llc -mtriple=powerpc64-unknown-linux-gnu < %s -verify-machineinstrs | FileCheck %s
2 target datalayout = "E-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-f128:128:128-v128:128:128-n32:64"
3 target triple = "powerpc64-unknown-linux-gnu"
4
5 %struct.__jmp_buf_tag.1.15.17.21.25.49.53.55 = type { [64 x i64], i32, %struct.__sigset_t.0.14.16.20.24.48.52.54, [8 x i8] }
6 %struct.__sigset_t.0.14.16.20.24.48.52.54 = type { [16 x i64] }
7
8 @env_sigill = external global [1 x %struct.__jmp_buf_tag.1.15.17.21.25.49.53.55], align 16
9
10 ; CHECK-LABEL: @main
11 ; CHECK-NOT: mtctr
12
13 ; Function Attrs: nounwind
14 define void @main() #0 {
15 entry:
16 br i1 undef, label %return, label %if.end
17
18 if.end: ; preds = %entry
19 br i1 undef, label %for.body.lr.ph, label %for.end.thread
20
21 for.end.thread: ; preds = %if.end
22 br label %return
23
24 for.body.lr.ph: ; preds = %if.end
25 br label %for.body
26
27 for.cond: ; preds = %for.body
28 %cmp2 = icmp slt i32 %inc, undef
29 br i1 %cmp2, label %for.body, label %for.end
30
31 for.body: ; preds = %for.cond, %for.body.lr.ph
32 %i.032 = phi i32 [ 0, %for.body.lr.ph ], [ %inc, %for.cond ]
33 %0 = call i32 @llvm.eh.sjlj.setjmp(ptr @env_sigill)
34 %inc = add nsw i32 %i.032, 1
35 br i1 false, label %if.else, label %for.cond
36
37 if.else: ; preds = %for.body
38 unreachable
39
40 for.end: ; preds = %for.cond
41 unreachable
42
43 return: ; preds = %for.end.thread, %entry
44 ret void
45 }
46
47 ; Function Attrs: nounwind
48 declare i32 @llvm.eh.sjlj.setjmp(ptr) #0
49
50 attributes #0 = { nounwind }