[ARM] Adjust how NEON shifts are lowered
[llvm-core.git] / test / DebugInfo / COFF / fpo-funclet.ll
blob0e8c03afb7d2e61ea6259791404880db7d21c305
1 ; RUN: llc < %s | FileCheck %s
3 ; C++ source:
4 ; void g();
5 ; void f() {
6 ;   try {
7 ;     g();
8 ;   } catch (...) {
9 ;     g();
10 ;   }
11 ; }
13 ; CHECK: "?f@@YAXXZ":                            # @"\01?f@@YAXXZ"
14 ; CHECK:         .cv_fpo_proc    "?f@@YAXXZ" 0
15 ; CHECK:         pushl   %ebp
16 ; CHECK:         .cv_fpo_pushreg %ebp
17 ; CHECK:         movl    %esp, %ebp
18 ; CHECK:         .cv_fpo_setframe        %ebp
19 ; ...
20 ; CHECK:         .cv_fpo_endprologue
21 ; CHECK:         retl
23 ;       No FPO directives in the catchpad for now.
24 ; CHECK: "?catch$2@?0??f@@YAXXZ@4HA":
25 ; CHECK-NOT: .cv_fpo
26 ; CHECK:         retl                            # CATCHRET
27 ;   FIXME: This endproc is for the parent function. To get FPO data for
28 ;   funclets we'd have to emit it first so the scopes don't nest.
29 ; CHECK:         .cv_fpo_endproc
31 ; CHECK-NOT: .cv_fpo_data
32 ; CHECK: .cv_fpo_data "?f@@YAXXZ"
33 ; CHECK-NOT: .cv_fpo_data
35 ; ModuleID = 't.cpp'
36 source_filename = "t.cpp"
37 target datalayout = "e-m:x-p:32:32-i64:64-f80:32-n8:16:32-a:0:32-S32"
38 target triple = "i386-pc-windows-msvc19.11.25508"
40 define void @"\01?f@@YAXXZ"() local_unnamed_addr #0 personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*) !dbg !8 {
41 entry:
42   invoke void @"\01?g@@YAXXZ"()
43           to label %try.cont unwind label %catch.dispatch, !dbg !11
45 catch.dispatch:                                   ; preds = %entry
46   %0 = catchswitch within none [label %catch] unwind to caller, !dbg !13
48 catch:                                            ; preds = %catch.dispatch
49   %1 = catchpad within %0 [i8* null, i32 64, i8* null], !dbg !13
50   call void @"\01?g@@YAXXZ"() [ "funclet"(token %1) ], !dbg !14
51   catchret from %1 to label %try.cont, !dbg !16
53 try.cont:                                         ; preds = %entry, %catch
54   ret void, !dbg !17
57 declare void @"\01?g@@YAXXZ"() local_unnamed_addr #1
59 declare i32 @__CxxFrameHandler3(...)
61 attributes #0 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
62 attributes #1 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="false" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="pentium4" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
64 !llvm.dbg.cu = !{!0}
65 !llvm.module.flags = !{!3, !4, !5, !6}
66 !llvm.ident = !{!7}
68 !0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 6.0.0 ", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
69 !1 = !DIFile(filename: "t.cpp", directory: "C:\5Csrc\5Cllvm-project\5Cbuild", checksumkind: CSK_MD5, checksum: "1e688e4021b6626d049b9899f9d53a2a")
70 !2 = !{}
71 !3 = !{i32 1, !"NumRegisterParameters", i32 0}
72 !4 = !{i32 2, !"CodeView", i32 1}
73 !5 = !{i32 2, !"Debug Info Version", i32 3}
74 !6 = !{i32 1, !"wchar_size", i32 2}
75 !7 = !{!"clang version 6.0.0 "}
76 !8 = distinct !DISubprogram(name: "f", linkageName: "\01?f@@YAXXZ", scope: !1, file: !1, line: 2, type: !9, isLocal: false, isDefinition: true, scopeLine: 2, flags: DIFlagPrototyped, isOptimized: true, unit: !0, retainedNodes: !2)
77 !9 = !DISubroutineType(types: !10)
78 !10 = !{null}
79 !11 = !DILocation(line: 4, column: 5, scope: !12)
80 !12 = distinct !DILexicalBlock(scope: !8, file: !1, line: 3, column: 7)
81 !13 = !DILocation(line: 5, column: 3, scope: !12)
82 !14 = !DILocation(line: 6, column: 5, scope: !15)
83 !15 = distinct !DILexicalBlock(scope: !8, file: !1, line: 5, column: 17)
84 !16 = !DILocation(line: 7, column: 3, scope: !15)
85 !17 = !DILocation(line: 8, column: 1, scope: !8)