mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-15 23:31:37 +00:00
New testcase for invoke support
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6933 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4148819f0f
commit
4097b2a963
12
test/CBackend/2003-06-28-InvokeSupport.ll
Normal file
12
test/CBackend/2003-06-28-InvokeSupport.ll
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
declare int %callee(int, int)
|
||||||
|
|
||||||
|
|
||||||
|
int %test(int %X) {
|
||||||
|
%A = invoke int %callee(int %X, int 5) to label %Ok except label %Threw
|
||||||
|
Ok:
|
||||||
|
%B = phi int [%A, %0], [-1, %Threw]
|
||||||
|
ret int %A
|
||||||
|
Threw:
|
||||||
|
br label %Ok
|
||||||
|
}
|
12
test/CodeGen/CBackend/2003-06-28-InvokeSupport.ll
Normal file
12
test/CodeGen/CBackend/2003-06-28-InvokeSupport.ll
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
|
||||||
|
declare int %callee(int, int)
|
||||||
|
|
||||||
|
|
||||||
|
int %test(int %X) {
|
||||||
|
%A = invoke int %callee(int %X, int 5) to label %Ok except label %Threw
|
||||||
|
Ok:
|
||||||
|
%B = phi int [%A, %0], [-1, %Threw]
|
||||||
|
ret int %A
|
||||||
|
Threw:
|
||||||
|
br label %Ok
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user