repo.or.cz
/
llvm
/
msp430.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Implement bswap
[llvm/msp430.git]
/
test
/
Transforms
/
IndVarSimplify
/
2009-04-27-Floating.ll
blob
700f294eb885215e45e3a8d77d5b95a64385a6ab
1
; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep icmp | grep next
2
; PR4086
3
declare void @foo()
4
5
define void @test() {
6
entry:
7
br label %loop_body
8
9
loop_body:
10
%i = phi float [ %nexti, %loop_body ], [ 0.0, %entry ]
11
tail call void @foo()
12
%nexti = add float %i, 1.0
13
%less = fcmp olt float %nexti, 2.0
14
br i1 %less, label %loop_body, label %done
15
16
done:
17
ret void
18
}