Dan Gohman | f17a25c | 2007-07-18 16:29:46 +0000 | [diff] [blame] | 1 | ; RUN: llvm-as < %s | llc -enable-eh |
| 2 | ; RUN: llvm-as < %s | llc -enable-eh -march=x86-64 |
| 3 | ; XFAIL: * |
| 4 | ; Un-XFAIL this when PR1508 is fixed. |
| 5 | |
| 6 | ; PR1326 |
| 7 | |
| 8 | @__gnat_others_value = external constant i32 ; <i32*> [#uses=1] |
| 9 | |
| 10 | define void @_ada_eh() { |
| 11 | entry: |
| 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 | |
| 16 | declare i32 @llvm.eh.selector(i8*, i8*, ...) |
| 17 | |
| 18 | declare i32 @__gnat_eh_personality(...) |