mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-06 12:16:59 +00:00
Add a new switch folding testcase
llvm-svn: 8092
This commit is contained in:
parent
4e512e2ac4
commit
1e40de654b
@ -47,3 +47,14 @@ int %test4(uint %C) { ; Test folding switch -> branch
|
||||
L1: ret int 0
|
||||
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