1 ; RUN: llc -verify-machineinstrs -mtriple=powerpc64-bgq-linux -enable-misched < %s | FileCheck %s
3 ; PR14315: misched should not move the physreg copy of %t below the calls.
5 @.str89 = external unnamed_addr constant [6 x i8], align 1
7 declare void @init() nounwind
9 declare void @clock() nounwind
14 define double @s332(double %t) nounwind {
16 tail call void @init()
17 tail call void @clock() nounwind
20 for.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
25 for.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
30 L20: ; 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