mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-24 22:32:47 +00:00
85f777946e
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36509 91177308-0d34-0410-b5e6-96231b3b80d8
17 lines
474 B
LLVM
17 lines
474 B
LLVM
; RUN: llvm-as < %s | llc -enable-eh
|
|
; RUN: llvm-as < %s | llc -enable-eh -march=x86-64
|
|
|
|
; PR1326
|
|
|
|
@__gnat_others_value = external constant i32 ; <i32*> [#uses=1]
|
|
|
|
define void @_ada_eh() {
|
|
entry:
|
|
%eh_select = tail call i32 (i8*, i8*, ...)* @llvm.eh.selector( i8* null, i8* bitcast (i32 (...)* @__gnat_eh_personality to i8*), i32* @__gnat_others_value ) ; <i32> [#uses=0]
|
|
ret void
|
|
}
|
|
|
|
declare i32 @llvm.eh.selector(i8*, i8*, ...)
|
|
|
|
declare i32 @__gnat_eh_personality(...)
|