Mercurial > hg > CbC > CbC_llvm
annotate test/Transforms/IndVarSimplify/shrunk-constant.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 |
rev | line source |
---|---|
0 | 1 ; RUN: opt < %s -scalar-evolution -analyze \ |
2 ; RUN: | grep "\--> (zext i4 {-7,+,-8}<%loop> to i32)" | |
3 | |
4 define fastcc void @foo() nounwind { | |
5 entry: | |
6 br label %loop | |
7 | |
8 loop: | |
9 %i = phi i32 [ 0, %entry ], [ %t2, %loop ] | |
10 %t0 = add i32 %i, 9 | |
11 %t1 = and i32 %t0, 9 | |
12 store i32 %t1, i32* null | |
13 %t2 = add i32 %i, 8 | |
14 br label %loop | |
15 } |