mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-18 12:29:21 +00:00
new testcases that simplifycfg breaks
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@7598 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f4de783582
commit
5d6bdae118
9
test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll
Normal file
9
test/Transforms/SimplifyCFG/2003-08-05-InvokeCrash.ll
Normal file
@ -0,0 +1,9 @@
|
||||
; Do not remove the invoke!
|
||||
;
|
||||
; RUN: as < %s | opt -simplifycfg -disable-output
|
||||
|
||||
int %test() {
|
||||
%A = invoke int %test() to label %Ret except label %Ret
|
||||
Ret:
|
||||
ret int %A
|
||||
}
|
10
test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll
Normal file
10
test/Transforms/SimplifyCFG/2003-08-05-MishandleInvoke.ll
Normal file
@ -0,0 +1,10 @@
|
||||
; Do not remove the invoke!
|
||||
;
|
||||
; RUN: as < %s | opt -simplifycfg | dis | grep invoke
|
||||
|
||||
int %test() {
|
||||
invoke int %test() to label %Ret except label %Ret
|
||||
Ret:
|
||||
%A = add int 0, 1
|
||||
ret int %A
|
||||
}
|
Loading…
Reference in New Issue
Block a user