brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.8 KiB · 5ae3683 Raw
72 lines · plain
1; RUN: llc -mtriple=hexagon -O2 -simplifycfg-require-and-preserve-domtree=1 < %s | FileCheck %s2 3; The purpose of this test is to make sure that the packetizer is ignoring4; CFI instructions while forming packet for allocframe. Refer to 7d7d996225; which replaced PROLOG_LABEL with CFI_INSTRUCTION.6 7@g0 = external constant ptr8 9; We used to emit:10;      {11;        allocframe(#0)12;      }13;      {14;         r0 = #415; But we can put more instructions in the first packet.16 17; CHECK:      {18; CHECK-NEXT:   call f119; CHECK-NEXT:   r0 = #420; CHECK-NEXT:   allocframe(#0)21; CHECK-NEXT: }22 23define i32 @f0() personality ptr @f3 {24b0:25  %v0 = tail call ptr @f1(i32 4) #126  store i32 20, ptr %v0, align 4, !tbaa !027  invoke void @f2(ptr %v0, ptr @g0, ptr null) #228          to label %b4 unwind label %b129 30b1:                                               ; preds = %b031  %v2 = landingpad { ptr, i32 }32          catch ptr @g033  %v3 = extractvalue { ptr, i32 } %v2, 134  %v4 = tail call i32 @llvm.eh.typeid.for(ptr @g0) #135  %v5 = icmp eq i32 %v3, %v436  br i1 %v5, label %b2, label %b337 38b2:                                               ; preds = %b139  %v6 = extractvalue { ptr, i32 } %v2, 040  %v7 = tail call ptr @f4(ptr %v6) #141  tail call void @f5() #142  ret i32 143 44b3:                                               ; preds = %b145  resume { ptr, i32 } %v246 47b4:                                               ; preds = %b048  unreachable49}50 51declare ptr @f1(i32)52 53declare void @f2(ptr, ptr, ptr)54 55declare i32 @f3(...)56 57; Function Attrs: nounwind readnone58declare i32 @llvm.eh.typeid.for(ptr) #059 60declare ptr @f4(ptr)61 62declare void @f5()63 64attributes #0 = { nounwind readnone }65attributes #1 = { nounwind }66attributes #2 = { noreturn }67 68!0 = !{!1, !1, i64 0}69!1 = !{!"int", !2}70!2 = !{!"omnipotent char", !3}71!3 = !{!"Simple C/C++ TBAA"}72