1 ; RUN: llc < %s -mtriple=x86_64-apple-darwin9 | FileCheck %s -check-prefix=X64
2 ; RUN: llc < %s -mtriple=i386-apple-darwin9 | FileCheck %s -check-prefix=X32
5 define void @_Z1fv() personality i32 (...)* @__gxx_personality_v0 {
8 to label %return unwind label %unwind
10 unwind: ; preds = %entry
11 %exn = landingpad {i8*, i32}
13 br i1 false, label %eh_then, label %cleanup20
15 eh_then: ; preds = %unwind
16 invoke void @__cxa_end_catch()
17 to label %return unwind label %unwind10
19 unwind10: ; preds = %eh_then
20 %exn10 = landingpad {i8*, i32}
22 %upgraded.eh_select13 = extractvalue { i8*, i32 } %exn10, 1
23 %upgraded.eh_select131 = sext i32 %upgraded.eh_select13 to i64
24 %tmp18 = icmp slt i64 %upgraded.eh_select131, 0
25 br i1 %tmp18, label %filter, label %cleanup20
27 filter: ; preds = %unwind10
30 cleanup20: ; preds = %unwind10, %unwind
31 %eh_selector.0 = phi i64 [ 0, %unwind ], [ %upgraded.eh_select131, %unwind10 ]
34 return: ; preds = %eh_then, %entry
40 declare void @__cxa_end_catch()
42 declare i32 @__gxx_personality_v0(...)
44 ; X64-NOT: .quad ___gxx_personality_v0
45 ; X64: .cfi_personality 155, ___gxx_personality_v0
47 ; X32-NOT: .long ___gxx_personality_v0
48 ; X32: .cfi_personality 155, L___gxx_personality_v0$non_lazy_ptr
50 ; X32: .section __IMPORT,__pointers,non_lazy_symbol_pointers
51 ; X32-NEXT: L___gxx_personality_v0$non_lazy_ptr:
52 ; X32-NEXT: .indirect_symbol ___gxx_personality_v0