2007-04-27 06:56:53 +00:00
|
|
|
; RUN: llvm-as < %s | llc -enable-eh
|
2007-04-27 17:12:23 +00:00
|
|
|
; RUN: llvm-as < %s | llc -enable-eh -march=x86-64
|
2007-06-15 19:04:19 +00:00
|
|
|
; XFAIL: *
|
|
|
|
; Un-XFAIL this when PR1508 is fixed.
|
2007-04-27 17:12:23 +00:00
|
|
|
|
|
|
|
; PR1326
|
2007-04-27 06:56:53 +00:00
|
|
|
|
|
|
|
@__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(...)
|