1 ; RUN: llc -march=hexagon -O2 < %s | FileCheck %s
3 ; The purpose of this test is to make sure that the packetizer is ignoring
4 ; CFI instructions while forming packet for allocframe. Refer to 7d7d99622
5 ; which replaced PROLOG_LABEL with CFI_INSTRUCTION.
7 @g0 = external constant i8*
15 ; But we can put more instructions in the first packet.
20 ; CHECK-NEXT: allocframe(#0)
23 define i32 @f0() personality i8* bitcast (i32 (...)* @f3 to i8*) {
25 %v0 = tail call i8* @f1(i32 4) #1
26 %v1 = bitcast i8* %v0 to i32*
27 store i32 20, i32* %v1, align 4, !tbaa !0
28 invoke void @f2(i8* %v0, i8* bitcast (i8** @g0 to i8*), i8* null) #2
29 to label %b4 unwind label %b1
32 %v2 = landingpad { i8*, i32 }
33 catch i8* bitcast (i8** @g0 to i8*)
34 %v3 = extractvalue { i8*, i32 } %v2, 1
35 %v4 = tail call i32 @llvm.eh.typeid.for(i8* bitcast (i8** @g0 to i8*)) #1
36 %v5 = icmp eq i32 %v3, %v4
37 br i1 %v5, label %b2, label %b3
40 %v6 = extractvalue { i8*, i32 } %v2, 0
41 %v7 = tail call i8* @f4(i8* %v6) #1
42 tail call void @f5() #1
46 resume { i8*, i32 } %v2
54 declare void @f2(i8*, i8*, i8*)
58 ; Function Attrs: nounwind readnone
59 declare i32 @llvm.eh.typeid.for(i8*) #0
65 attributes #0 = { nounwind readnone }
66 attributes #1 = { nounwind }
67 attributes #2 = { noreturn }
71 !2 = !{!"omnipotent char", !3}
72 !3 = !{!"Simple C/C++ TBAA"}