1; RUN: llc -mtriple=powerpc64-bgq-linux -enable-misched < %s | FileCheck %s 2; 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 1 6 7declare void @init() nounwind 8 9declare void @clock() nounwind 10 11; CHECK: mflr 0 12; CHECK: fmr 31, 1 13; CHECK: bl init 14define double @s332(double %t) nounwind { 15entry: 16 tail call void @init() 17 tail call void @clock() nounwind 18 br label %for.cond2 19 20for.cond2: ; preds = %for.body4, %entry 21 %i.0 = phi i32 [ %inc, %for.body4 ], [ 0, %entry ] 22 %cmp3 = icmp slt i32 undef, 16000 23 br i1 %cmp3, label %for.body4, label %L20 24 25for.body4: ; preds = %for.cond2 26 %cmp5 = fcmp ogt double undef, %t 27 %inc = add nsw i32 %i.0, 1 28 br i1 %cmp5, label %L20, label %for.cond2 29 30L20: ; preds = %for.body4, %for.cond2 31 %index.0 = phi i32 [ -2, %for.cond2 ], [ %i.0, %for.body4 ] 32 %index.d = sitofp i32 %index.0 to double 33 %retval = fadd double %t, %index.d 34 ret double %retval 35} 36