1; RUN: llc -march=hexagon < %s | FileCheck %s 2; CHECK: .cfi_def_cfa r30 3; CHECK: .cfi_offset r31 4; CHECK: .cfi_offset r30 5 6@g0 = global i32 0, align 4 7@g1 = external constant i8* 8 9define i32 @f0() personality i8* bitcast (i32 (...)* @f3 to i8*) { 10b0: 11 %v0 = alloca i32, align 4 12 %v1 = alloca i8* 13 %v2 = alloca i32 14 %v3 = alloca i32, align 4 15 store i32 0, i32* %v0 16 %v4 = call i8* @f1(i32 4) #1 17 %v5 = bitcast i8* %v4 to i32* 18 store i32 20, i32* %v5 19 invoke void @f2(i8* %v4, i8* bitcast (i8** @g1 to i8*), i8* null) #2 20 to label %b6 unwind label %b1 21 22b1: ; preds = %b0 23 %v6 = landingpad { i8*, i32 } 24 catch i8* bitcast (i8** @g1 to i8*) 25 %v7 = extractvalue { i8*, i32 } %v6, 0 26 store i8* %v7, i8** %v1 27 %v8 = extractvalue { i8*, i32 } %v6, 1 28 store i32 %v8, i32* %v2 29 br label %b2 30 31b2: ; preds = %b1 32 %v9 = load i32, i32* %v2 33 %v10 = call i32 @llvm.eh.typeid.for(i8* bitcast (i8** @g1 to i8*)) #1 34 %v11 = icmp eq i32 %v9, %v10 35 br i1 %v11, label %b3, label %b5 36 37b3: ; preds = %b2 38 %v12 = load i8*, i8** %v1 39 %v13 = call i8* @f4(i8* %v12) #1 40 %v14 = bitcast i8* %v13 to i32* 41 %v15 = load i32, i32* %v14, align 4 42 store i32 %v15, i32* %v3, align 4 43 %v16 = load i32, i32* %v3, align 4 44 store i32 %v16, i32* @g0, align 4 45 call void @f5() #1 46 br label %b4 47 48b4: ; preds = %b3 49 %v17 = load i32, i32* @g0, align 4 50 ret i32 %v17 51 52b5: ; preds = %b2 53 %v18 = load i8*, i8** %v1 54 %v19 = load i32, i32* %v2 55 %v20 = insertvalue { i8*, i32 } undef, i8* %v18, 0 56 %v21 = insertvalue { i8*, i32 } %v20, i32 %v19, 1 57 resume { i8*, i32 } %v21 58 59b6: ; preds = %b0 60 unreachable 61} 62 63declare i8* @f1(i32) 64 65declare void @f2(i8*, i8*, i8*) 66 67declare i32 @f3(...) 68 69; Function Attrs: nounwind readnone 70declare i32 @llvm.eh.typeid.for(i8*) #0 71 72declare i8* @f4(i8*) 73 74declare void @f5() 75 76attributes #0 = { nounwind readnone } 77attributes #1 = { nounwind } 78attributes #2 = { noreturn } 79