41 lines · plain
1; RUN: %lli -jit-kind=mcjit -remote-mcjit -mcjit-remote-process=lli-child-target \2; RUN: -relocation-model=pic -code-model=small %s > /dev/null3; XFAIL: target={{(mips|mipsel)-.*}}, target={{(aarch64|arm).*}}, target={{(i686|i386).*}}4; XFAIL: target={{.*-windows-(gnu|msvc)}}5; REQUIRES: thread_support6; UNSUPPORTED: target=target=powerpc64-unknown-linux-gnu7; Remove UNSUPPORTED for powerpc64-unknown-linux-gnu if problem caused by r266663 is fixed8 9@count = global i32 1, align 410 11define i32 @main() nounwind {12entry:13 %retval = alloca i32, align 414 %i = alloca i32, align 415 store i32 0, ptr %retval16 store i32 0, ptr %i, align 417 br label %for.cond18 19for.cond: ; preds = %for.inc, %entry20 %0 = load i32, ptr %i, align 421 %cmp = icmp slt i32 %0, 4922 br i1 %cmp, label %for.body, label %for.end23 24for.body: ; preds = %for.cond25 %1 = load i32, ptr @count, align 426 %inc = add nsw i32 %1, 127 store i32 %inc, ptr @count, align 428 br label %for.inc29 30for.inc: ; preds = %for.body31 %2 = load i32, ptr %i, align 432 %inc1 = add nsw i32 %2, 133 store i32 %inc1, ptr %i, align 434 br label %for.cond35 36for.end: ; preds = %for.cond37 %3 = load i32, ptr @count, align 438 %sub = sub nsw i32 %3, 5039 ret i32 %sub40}41