mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-21 01:25:20 +00:00
add another testcase to make sure it gets turned into a switch (answer: yes it does)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20291 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3a7118d7da
commit
90970609f2
@ -31,3 +31,18 @@ F:
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void %test3(int %V) {
|
||||||
|
%C1 = seteq int %V, 4
|
||||||
|
br bool %C1, label %T, label %N
|
||||||
|
N:
|
||||||
|
%C2 = seteq int %V, 17
|
||||||
|
br bool %C2, label %T, label %F
|
||||||
|
T:
|
||||||
|
call void %foo1()
|
||||||
|
ret void
|
||||||
|
F:
|
||||||
|
call void %foo2()
|
||||||
|
ret void
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user