1 ;; A parameter list long enough to put one parameter on the stack, plus
2 ;; at least one float parameter, triggered a corner case that messed up
3 ;; setting prologue_end.
5 ;; Generated using -gmlt from this source:
6 ;; void call_7i_1f (char c1, float f1, char c2, char c3, char c4, char c5, char c6, short s)
8 ;; c1 = 'a'; f1 = 0.1; c2 = 5; c3 = 6; c4 = 7;
9 ;; c5 = 's'; c6 = 'f'; s = 77;
12 ; RUN: llc -mtriple x86_64-- -fast-isel < %s | FileCheck %s
14 define dso_local void @call_7i_1f(i8 signext %c1, float %f1, i8 signext %c2, i8 signext %c3, i8 signext %c4, i8 signext %c5, i8 signext %c6, i16 signext %s) !dbg !7 {
16 %c1.addr = alloca i8, align 1
17 %f1.addr = alloca float, align 4
18 %c2.addr = alloca i8, align 1
19 %c3.addr = alloca i8, align 1
20 %c4.addr = alloca i8, align 1
21 %c5.addr = alloca i8, align 1
22 %c6.addr = alloca i8, align 1
23 %s.addr = alloca i16, align 2
24 store i8 %c1, ptr %c1.addr, align 1
25 store float %f1, ptr %f1.addr, align 4
26 store i8 %c2, ptr %c2.addr, align 1
27 store i8 %c3, ptr %c3.addr, align 1
28 store i8 %c4, ptr %c4.addr, align 1
29 store i8 %c5, ptr %c5.addr, align 1
30 store i8 %c6, ptr %c6.addr, align 1
31 store i16 %s, ptr %s.addr, align 2
32 store i8 97, ptr %c1.addr, align 1, !dbg !9
33 store float 0x3FB99999A0000000, ptr %f1.addr, align 4, !dbg !10
34 store i8 5, ptr %c2.addr, align 1, !dbg !11
35 store i8 6, ptr %c3.addr, align 1, !dbg !12
36 store i8 7, ptr %c4.addr, align 1, !dbg !13
37 store i8 115, ptr %c5.addr, align 1, !dbg !14
38 store i8 102, ptr %c6.addr, align 1, !dbg !15
39 store i16 77, ptr %s.addr, align 2, !dbg !16
43 ;; All incoming parameter registers should be homed as part of the prologue.
54 !llvm.module.flags = !{!3, !4, !5}
57 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 12.0.0", isOptimized: false, runtimeVersion: 0, emissionKind: LineTablesOnly, enums: !2, splitDebugInlining: false, nameTableKind: None)
58 !1 = !DIFile(filename: "fast-isel-prolog-dbgloc.c", directory: "/home/probinson/projects/scratch")
60 !3 = !{i32 7, !"Dwarf Version", i32 4}
61 !4 = !{i32 2, !"Debug Info Version", i32 3}
62 !5 = !{i32 1, !"wchar_size", i32 4}
63 !6 = !{!"clang version 12.0.0"}
64 !7 = distinct !DISubprogram(name: "call_7i_1f", scope: !1, file: !1, line: 3, type: !8, scopeLine: 4, flags: DIFlagPrototyped, spFlags: DISPFlagDefinition, unit: !0, retainedNodes: !2)
65 !8 = !DISubroutineType(types: !2)
66 !9 = !DILocation(line: 5, column: 6, scope: !7)
67 !10 = !DILocation(line: 5, column: 16, scope: !7)
68 !11 = !DILocation(line: 5, column: 26, scope: !7)
69 !12 = !DILocation(line: 5, column: 34, scope: !7)
70 !13 = !DILocation(line: 5, column: 42, scope: !7)
71 !14 = !DILocation(line: 6, column: 6, scope: !7)
72 !15 = !DILocation(line: 6, column: 16, scope: !7)
73 !16 = !DILocation(line: 6, column: 25, scope: !7)
74 !17 = !DILocation(line: 7, column: 1, scope: !7)