brintos

brintos / llvm-project-archived public Read only

0
0
Text · 3.0 KiB · 1b22346 Raw
75 lines · plain
1;; A parameter list long enough to put one parameter on the stack, plus2;; at least one float parameter, triggered a corner case that messed up3;; setting prologue_end.4;;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)7;; {8;;   c1 = 'a'; f1 = 0.1; c2 = 5; c3 = 6; c4 = 7;9;;   c5 = 's'; c6 = 'f'; s = 77;10;; }11 12; RUN: llc -mtriple x86_64-- -fast-isel < %s | FileCheck %s13 14define 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 {15entry:16  %c1.addr = alloca i8, align 117  %f1.addr = alloca float, align 418  %c2.addr = alloca i8, align 119  %c3.addr = alloca i8, align 120  %c4.addr = alloca i8, align 121  %c5.addr = alloca i8, align 122  %c6.addr = alloca i8, align 123  %s.addr = alloca i16, align 224  store i8 %c1, ptr %c1.addr, align 125  store float %f1, ptr %f1.addr, align 426  store i8 %c2, ptr %c2.addr, align 127  store i8 %c3, ptr %c3.addr, align 128  store i8 %c4, ptr %c4.addr, align 129  store i8 %c5, ptr %c5.addr, align 130  store i8 %c6, ptr %c6.addr, align 131  store i16 %s, ptr %s.addr, align 232  store i8 97, ptr %c1.addr, align 1, !dbg !933  store float 0x3FB99999A0000000, ptr %f1.addr, align 4, !dbg !1034  store i8 5, ptr %c2.addr, align 1, !dbg !1135  store i8 6, ptr %c3.addr, align 1, !dbg !1236  store i8 7, ptr %c4.addr, align 1, !dbg !1337  store i8 115, ptr %c5.addr, align 1, !dbg !1438  store i8 102, ptr %c6.addr, align 1, !dbg !1539  store i16 77, ptr %s.addr, align 2, !dbg !1640  ret void, !dbg !1741}42 43;; All incoming parameter registers should be homed as part of the prologue.44; CHECK-DAG: %dil45; CHECK-DAG: %xmm046; CHECK-DAG: %sil47; CHECK-DAG: %dl48; CHECK-DAG: %cl49; CHECK-DAG: %r8b50; CHECK-DAG: %r9b51; CHECK:     prologue_end52 53!llvm.dbg.cu = !{!0}54!llvm.module.flags = !{!3, !4, !5}55!llvm.ident = !{!6}56 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")59!2 = !{}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)75