brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · d93f192 Raw
36 lines · plain
1; RUN: llc -verify-machineinstrs -mtriple=powerpc64le-unknown-linux -enable-misched < %s | FileCheck %s2;3; PR14315: misched should not move the physreg copy of %t below the calls.4 5@.str89 = external unnamed_addr constant [6 x i8], align 16 7declare void @init() nounwind8 9declare void @clock() nounwind10 11; CHECK: mflr 012; CHECK: fmr 31, 113; CHECK: bl init14define double @s332(double %t) nounwind {15entry:16  tail call void @init()17  tail call void @clock() nounwind18  br label %for.cond219 20for.cond2:                                        ; preds = %for.body4, %entry21  %i.0 = phi i32 [ %inc, %for.body4 ], [ 0, %entry ]22  %cmp3 = icmp slt i32 undef, 1600023  br i1 %cmp3, label %for.body4, label %L2024 25for.body4:                                        ; preds = %for.cond226  %cmp5 = fcmp ogt double undef, %t27  %inc = add nsw i32 %i.0, 128  br i1 %cmp5, label %L20, label %for.cond229 30L20:                                              ; preds = %for.body4, %for.cond231  %index.0 = phi i32 [ -2, %for.cond2 ], [ %i.0, %for.body4 ]32  %index.d = sitofp i32 %index.0 to double33  %retval = fadd double %t, %index.d34  ret double %retval35}36