31 lines · plain
1; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 -verify-machineinstrs | FileCheck %s2; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr9 -verify-machineinstrs | FileCheck %s3; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -verify-machineinstrs | FileCheck %s4; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr8 -verify-machineinstrs | FileCheck %s5 6@perm = local_unnamed_addr global [100 x i64] zeroinitializer, align 87 8define void @sort_basket() local_unnamed_addr {9entry:10 br label %while.cond11 12while.cond:13 %l.0 = phi i64 [ 0, %entry ], [ %inc, %while.cond ]14 %arrayidx = getelementptr inbounds [100 x i64], ptr @perm, i64 0, i64 %l.015 %0 = load i64, ptr %arrayidx, align 816 %cmp = icmp sgt i64 %0, 017 %inc = add nuw nsw i64 %l.0, 118 br i1 %cmp, label %while.cond, label %while.end19 20while.end:21 store i64 0, ptr %arrayidx, align 822 ret void23; CHECK-LABEL: sort_basket24; CHECK: addi {{[0-9]+}}, {{[0-9]+}}, -825; CHECK-NOT: addi {{[0-9]+}}, {{[0-9]+}}, 826; CHECK: ldu {{[0-9]+}}, 8({{[0-9]+}})27; CHECK-NOT: addi {{[0-9]+}}, {{[0-9]+}}, 828; CHECK: blr29}30 31