brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · a506b54 Raw
77 lines · plain
1; RUN: llc -mtriple=hexagon -simplifycfg-require-and-preserve-domtree=1 < %s | FileCheck %s2; CHECK: .cfi_def_cfa r303; CHECK: .cfi_offset r314; CHECK: .cfi_offset r305 6@g0 = global i32 0, align 47@g1 = external constant ptr8 9define i32 @f0() personality ptr @f3 {10b0:11  %v0 = alloca i32, align 412  %v1 = alloca ptr13  %v2 = alloca i3214  %v3 = alloca i32, align 415  store i32 0, ptr %v016  %v4 = call ptr @f1(i32 4) #117  store i32 20, ptr %v418  invoke void @f2(ptr %v4, ptr @g1, ptr null) #219          to label %b6 unwind label %b120 21b1:                                               ; preds = %b022  %v6 = landingpad { ptr, i32 }23          catch ptr @g124  %v7 = extractvalue { ptr, i32 } %v6, 025  store ptr %v7, ptr %v126  %v8 = extractvalue { ptr, i32 } %v6, 127  store i32 %v8, ptr %v228  br label %b229 30b2:                                               ; preds = %b131  %v9 = load i32, ptr %v232  %v10 = call i32 @llvm.eh.typeid.for(ptr @g1) #133  %v11 = icmp eq i32 %v9, %v1034  br i1 %v11, label %b3, label %b535 36b3:                                               ; preds = %b237  %v12 = load ptr, ptr %v138  %v13 = call ptr @f4(ptr %v12) #139  %v15 = load i32, ptr %v13, align 440  store i32 %v15, ptr %v3, align 441  %v16 = load i32, ptr %v3, align 442  store i32 %v16, ptr @g0, align 443  call void @f5() #144  br label %b445 46b4:                                               ; preds = %b347  %v17 = load i32, ptr @g0, align 448  ret i32 %v1749 50b5:                                               ; preds = %b251  %v18 = load ptr, ptr %v152  %v19 = load i32, ptr %v253  %v20 = insertvalue { ptr, i32 } undef, ptr %v18, 054  %v21 = insertvalue { ptr, i32 } %v20, i32 %v19, 155  resume { ptr, i32 } %v2156 57b6:                                               ; preds = %b058  unreachable59}60 61declare ptr @f1(i32)62 63declare void @f2(ptr, ptr, ptr)64 65declare i32 @f3(...)66 67; Function Attrs: nounwind readnone68declare i32 @llvm.eh.typeid.for(ptr) #069 70declare ptr @f4(ptr)71 72declare void @f5()73 74attributes #0 = { nounwind readnone }75attributes #1 = { nounwind }76attributes #2 = { noreturn }77