80 lines · plain
1; RUN: llc -mtriple=hexagon -simplifycfg-require-and-preserve-domtree=1 < %s | FileCheck %s2 3; CHECK: GCC_except_table0:4; CHECK: Call site Encoding = uleb1285 6target triple = "hexagon"7 8@g0 = external constant ptr9 10define i32 @f0() #0 personality ptr @f3 {11b0:12 %v0 = alloca i32, align 413 %v1 = alloca i32, align 414 %v2 = alloca ptr15 %v3 = alloca i3216 %v4 = alloca i32, align 417 store i32 0, ptr %v018 store i32 1, ptr %v1, align 419 %v5 = call ptr @f1(i32 4) #220 store i32 20, ptr %v521 invoke void @f2(ptr %v5, ptr @g0, ptr null) #322 to label %b6 unwind label %b123 24b1: ; preds = %b025 %v7 = landingpad { ptr, i32 }26 catch ptr @g027 %v8 = extractvalue { ptr, i32 } %v7, 028 store ptr %v8, ptr %v229 %v9 = extractvalue { ptr, i32 } %v7, 130 store i32 %v9, ptr %v331 br label %b232 33b2: ; preds = %b134 %v10 = load i32, ptr %v335 %v11 = call i32 @llvm.eh.typeid.for(ptr @g0) #236 %v12 = icmp eq i32 %v10, %v1137 br i1 %v12, label %b3, label %b538 39b3: ; preds = %b240 %v13 = load ptr, ptr %v241 %v14 = call ptr @f4(ptr %v13) #242 %v16 = load i32, ptr %v14, align 443 store i32 %v16, ptr %v4, align 444 store i32 2, ptr %v1, align 445 call void @f5() #246 br label %b447 48b4: ; preds = %b349 %v17 = load i32, ptr %v1, align 450 ret i32 %v1751 52b5: ; preds = %b253 %v18 = load ptr, ptr %v254 %v19 = load i32, ptr %v355 %v20 = insertvalue { ptr, i32 } undef, ptr %v18, 056 %v21 = insertvalue { ptr, i32 } %v20, i32 %v19, 157 resume { ptr, i32 } %v2158 59b6: ; preds = %b060 unreachable61}62 63declare ptr @f1(i32)64 65declare void @f2(ptr, ptr, ptr)66 67declare i32 @f3(...)68 69; Function Attrs: nounwind readnone70declare i32 @llvm.eh.typeid.for(ptr) #171 72declare ptr @f4(ptr)73 74declare void @f5()75 76attributes #0 = { "frame-pointer"="all" }77attributes #1 = { nounwind readnone }78attributes #2 = { nounwind }79attributes #3 = { noreturn }80