1; RUN: llc -mtriple aarch64-linux-gnu -emit-call-site-info -filetype=obj -o - %s | llvm-dwarfdump - | FileCheck %s 2 3; Based on the following C reproducer: 4; 5; extern void callee(float); 6; 7; void foo(float param) { 8; callee(param); 9; } 10 11; Verify that a call site value using DW_OP_GNU_entry_value(DW_OP_regx B0) is 12; emitted for the float parameter. Previously the entry value's multi-byte 13; DW_OP_regx expression would be truncated. 14 15; CHECK: DW_TAG_GNU_call_site_parameter 16; CHECK-NEXT: DW_AT_location (DW_OP_regx B0) 17; CHECK-NEXT: DW_AT_GNU_call_site_value (DW_OP_GNU_entry_value(DW_OP_regx B0) 18 19target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" 20target triple = "aarch64" 21 22; Function Attrs: nounwind 23define dso_local void @foo(float %param) local_unnamed_addr !dbg !12 { 24entry: 25 tail call void @callee(float %param), !dbg !13 26 ret void, !dbg !14 27} 28 29declare !dbg !4 dso_local void @callee(float) local_unnamed_addr 30 31!llvm.dbg.cu = !{!0} 32!llvm.module.flags = !{!8, !9, !10} 33!llvm.ident = !{!11} 34 35!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 11.0.0 ", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !3, splitDebugInlining: false, nameTableKind: None) 36!1 = !DIFile(filename: "float.c", directory: "/") 37!2 = !{} 38!3 = !{!4} 39!4 = !DISubprogram(name: "callee", scope: !1, file: !1, line: 1, type: !5, flags: DIFlagPrototyped, spFlags: DISPFlagOptimized, retainedNodes: !2) 40!5 = !DISubroutineType(types: !6) 41!6 = !{null, !7} 42!7 = !DIBasicType(name: "float", size: 32, encoding: DW_ATE_float) 43!8 = !{i32 7, !"Dwarf Version", i32 4} 44!9 = !{i32 2, !"Debug Info Version", i32 3} 45!10 = !{i32 1, !"wchar_size", i32 4} 46!11 = !{!"clang version 11.0.0 "} 47!12 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 3, type: !5, scopeLine: 3, flags: DIFlagPrototyped | DIFlagAllCallsDescribed, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !2) 48!13 = !DILocation(line: 4, scope: !12) 49!14 = !DILocation(line: 5, scope: !12) 50