51 lines · plain
1; RUN: llc -mtriple=powerpc64-unknown-linux-gnu < %s -verify-machineinstrs | FileCheck %s2target 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 169 10; CHECK-LABEL: @main11; CHECK-NOT: mtctr12 13; Function Attrs: nounwind14define void @main() #0 {15entry:16 br i1 undef, label %return, label %if.end17 18if.end: ; preds = %entry19 br i1 undef, label %for.body.lr.ph, label %for.end.thread20 21for.end.thread: ; preds = %if.end22 br label %return23 24for.body.lr.ph: ; preds = %if.end25 br label %for.body26 27for.cond: ; preds = %for.body28 %cmp2 = icmp slt i32 %inc, undef29 br i1 %cmp2, label %for.body, label %for.end30 31for.body: ; preds = %for.cond, %for.body.lr.ph32 %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, 135 br i1 false, label %if.else, label %for.cond36 37if.else: ; preds = %for.body38 unreachable39 40for.end: ; preds = %for.cond41 unreachable42 43return: ; preds = %for.end.thread, %entry44 ret void45}46 47; Function Attrs: nounwind48declare i32 @llvm.eh.sjlj.setjmp(ptr) #049 50attributes #0 = { nounwind }51