1; RUN: llc -mtriple=powerpc64-unknown-linux-gnu < %s | FileCheck %s 2target 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" 3target 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 14define void @main() #0 { 15entry: 16 br i1 undef, label %return, label %if.end 17 18if.end: ; preds = %entry 19 br i1 undef, label %for.body.lr.ph, label %for.end.thread 20 21for.end.thread: ; preds = %if.end 22 br label %return 23 24for.body.lr.ph: ; preds = %if.end 25 br label %for.body 26 27for.cond: ; preds = %for.body 28 %cmp2 = icmp slt i32 %inc, undef 29 br i1 %cmp2, label %for.body, label %for.end 30 31for.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(i8* bitcast ([1 x %struct.__jmp_buf_tag.1.15.17.21.25.49.53.55]* @env_sigill to i8*)) 34 %inc = add nsw i32 %i.032, 1 35 br i1 false, label %if.else, label %for.cond 36 37if.else: ; preds = %for.body 38 unreachable 39 40for.end: ; preds = %for.cond 41 unreachable 42 43return: ; preds = %for.end.thread, %entry 44 ret void 45} 46 47; Function Attrs: nounwind 48declare i32 @llvm.eh.sjlj.setjmp(i8*) #0 49 50attributes #0 = { nounwind } 51