mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
Add a new switch folding testcase
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8092 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f959c33a45
commit
2231d5892b
@ -47,3 +47,14 @@ int %test4(uint %C) { ; Test folding switch -> branch
|
|||||||
L1: ret int 0
|
L1: ret int 0
|
||||||
L2: ret int 1
|
L2: ret int 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int %test5(uint %C) {
|
||||||
|
switch uint %C, label %L1 [ ; Can fold into a cond branch!
|
||||||
|
uint 0, label %L2
|
||||||
|
uint 123, label %L1
|
||||||
|
]
|
||||||
|
L1: ret int 0
|
||||||
|
L2: ret int 1
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user