mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
new testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8688 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
452db67a0e
commit
e1a37cba9c
16
test/Transforms/IndVarsSimplify/2003-09-23-NotAtTop.ll
Normal file
16
test/Transforms/IndVarsSimplify/2003-09-23-NotAtTop.ll
Normal file
@ -0,0 +1,16 @@
|
||||
; RUN: llvm-as < %s | opt -indvars | llvm-dis | grep -C 1 Loop: | grep Canonical
|
||||
|
||||
; The indvar simplification code should ensure that the first PHI in the block
|
||||
; is the canonical one!
|
||||
|
||||
int %test() {
|
||||
br label %Loop
|
||||
Loop:
|
||||
%NonIndvar = phi int [200, %0], [%NonIndvarNext, %Loop]
|
||||
%Canonical = phi int [0, %0], [%CanonicalNext, %Loop]
|
||||
|
||||
%NonIndvarNext = div int %NonIndvar, 2
|
||||
%CanonicalNext = add int %Canonical, 1
|
||||
br label %Loop
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user