mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +00:00
New testcase that crashes the -lowerswitch pass
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12383 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bb41156c0c
commit
6cc83750b8
@ -0,0 +1,21 @@
|
||||
; RUN: llvm-as < %s | opt -lowerswitch -disable-output
|
||||
|
||||
void %solve() {
|
||||
entry:
|
||||
%targetBlock = call ushort %solve_code( ) ; <ushort> [#uses=1]
|
||||
br label %codeReplTail
|
||||
|
||||
then.1: ; preds = %codeReplTail
|
||||
ret void
|
||||
|
||||
loopexit.0: ; preds = %codeReplTail
|
||||
ret void
|
||||
|
||||
codeReplTail: ; preds = %entry, %codeReplTail
|
||||
switch ushort %targetBlock, label %codeReplTail [
|
||||
ushort 0, label %loopexit.0
|
||||
ushort 1, label %then.1
|
||||
]
|
||||
}
|
||||
|
||||
declare ushort %solve_code()
|
Loading…
Reference in New Issue
Block a user