blob: be039bf757d353b417be8f8d6d8a1e9274f6997e [file] [log] [blame]
Duncan Sandsc88725f2007-04-27 06:56:53 +00001; RUN: llvm-as < %s | llc -enable-eh
Chris Lattner85f77792007-04-27 17:12:23 +00002; RUN: llvm-as < %s | llc -enable-eh -march=x86-64
Duncan Sandsf4070822007-06-15 19:04:19 +00003; XFAIL: *
4; Un-XFAIL this when PR1508 is fixed.
Duncan Sandsc88725f2007-04-27 06:56:53 +00005
Chris Lattner85f77792007-04-27 17:12:23 +00006; PR1326
7
Duncan Sandsc88725f2007-04-27 06:56:53 +00008@__gnat_others_value = external constant i32 ; <i32*> [#uses=1]
9
10define void @_ada_eh() {
11entry:
12 %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]
13 ret void
14}
15
16declare i32 @llvm.eh.selector(i8*, i8*, ...)
17
18declare i32 @__gnat_eh_personality(...)