brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.3 KiB · 1a00600 Raw
50 lines · plain
1; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -enable-ppc-prefetching=true | FileCheck %s2; RUN: llc < %s -mtriple=powerpc64-unknown-linux-gnu -mcpu=pwr7 -enable-ppc-prefetching=true -cache-line-size=64 | FileCheck %s -check-prefix=CHECK-DCBT3; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -enable-ppc-prefetching=true | FileCheck %s4; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr8 -enable-ppc-prefetching=true -cache-line-size=64 | FileCheck %s -check-prefix=CHECK-DCBT5; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 -enable-ppc-prefetching=true | FileCheck %s6; RUN: llc < %s -mtriple=powerpc64le-unknown-linux-gnu -mcpu=pwr9 -enable-ppc-prefetching=true -cache-line-size=64 | FileCheck %s -check-prefix=CHECK-DCBT7; RUN: llc < %s -mtriple=ppc64-- -mcpu=a2 -enable-ppc-prefetching=true | FileCheck %s -check-prefix=CHECK-DCBT8 9; Function Attrs: nounwind10define signext i32 @check_cache_line() local_unnamed_addr {11entry:12  %call = tail call ptr @magici()13  %call115 = tail call signext i32 @iter()14  %cmp16 = icmp sgt i32 %call115, 015  br i1 %cmp16, label %for.body, label %for.cond.cleanup16 17for.cond.cleanup:                                 ; preds = %for.body, %entry18  %res.0.lcssa = phi i32 [ 0, %entry ], [ %add5, %for.body ]19  ret i32 %res.0.lcssa20 21for.body:                                         ; preds = %entry, %for.body22  %indvars.iv = phi i64 [ %indvars.iv.next, %for.body ], [ 0, %entry ]23  %res.017 = phi i32 [ %add5, %for.body ], [ 0, %entry ]24  %arrayidx = getelementptr inbounds i32, ptr %call, i64 %indvars.iv25  %0 = load i32, ptr %arrayidx, align 426  %add = add nsw i32 %0, %res.01727  %1 = add nuw nsw i64 %indvars.iv, 1628  %arrayidx4 = getelementptr inbounds i32, ptr %call, i64 %129  %2 = load i32, ptr %arrayidx4, align 430  %add5 = add nsw i32 %add, %231  %indvars.iv.next = add nuw i64 %indvars.iv, 132  %call1 = tail call signext i32 @iter()33  %3 = sext i32 %call1 to i6434  %cmp = icmp slt i64 %indvars.iv.next, %335  br i1 %cmp, label %for.body, label %for.cond.cleanup36; CHECK-LABEL: check_cache_line37; CHECK: dcbt38; CHECK-NOT: dcbt39; CHECK: blr40; CHECK-DCBT-LABEL: check_cache_line41; CHECK-DCBT: dcbt42; CHECK-DCBT: dcbt43; CHECK-DCBT: blr44}45 46declare ptr @magici(...) local_unnamed_addr47 48declare signext i32 @iter(...) local_unnamed_addr49 50