Mercurial > hg > CbC > CbC_llvm
comparison test/CodeGen/PowerPC/2012-11-16-mischedcall.ll @ 0:95c75e76d11b LLVM3.4
LLVM 3.4
author | Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp> |
---|---|
date | Thu, 12 Dec 2013 13:56:28 +0900 |
parents | |
children | 1172e4bd9c6f |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:95c75e76d11b |
---|---|
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 | |
7 declare void @init() nounwind | |
8 | |
9 declare void @clock() nounwind | |
10 | |
11 ; CHECK: %entry | |
12 ; CHECK: fmr 31, 1 | |
13 ; CHECK: bl init | |
14 define void @s332(double %t) nounwind { | |
15 entry: | |
16 tail call void @init() | |
17 tail call void @clock() nounwind | |
18 br label %for.cond2 | |
19 | |
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 | |
24 | |
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 | |
29 | |
30 L20: ; preds = %for.body4, %for.cond2 | |
31 %index.0 = phi i32 [ -2, %for.cond2 ], [ %i.0, %for.body4 ] | |
32 unreachable | |
33 } |