1; RUN: llc -O0 -filetype=asm %s -o - -experimental-debug-variable-locations=true | FileCheck %s 2; Test large integral function arguments passed in multiple registers. 3; CHECK: DEBUG_VALUE: foo:bar <- [DW_OP_LLVM_fragment 64 16] ${{([a-d]x)|(si)|(di)|(bp)|(r[0-9]+w)}} 4; CHECK: DEBUG_VALUE: foo:bar <- [DW_OP_LLVM_fragment 48 16] ${{([a-d]x)|(si)|(di)|(bp)|(r[0-9]+w)}} 5; CHECK: DEBUG_VALUE: foo:bar <- [DW_OP_LLVM_fragment 32 16] ${{([a-d]x)|(si)|(di)|(bp)|(r[0-9]+w)}} 6; CHECK: DEBUG_VALUE: foo:bar <- [DW_OP_LLVM_fragment 16 16] ${{([a-d]x)|(si)|(di)|(bp)|(r[0-9]+w)}} 7; CHECK: DEBUG_VALUE: foo:bar <- [DW_OP_LLVM_fragment 0 16] ${{([a-d]x)|(si)|(di)|(bp)|(r[0-9]+w)}} 8 9target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" 10target triple = "x86_64-unknown-unknown" 11 12%rec789 = type { [5 x i16] } 13 14define void @foo(%rec789 %bar) !dbg !6 { 15 %bar.2 = alloca %rec789, align 1 16 call void @llvm.dbg.value(metadata %rec789 %bar, metadata !17, metadata !DIExpression()), !dbg !18 17 %1 = extractvalue %rec789 %bar, 0 18 %.elt = extractvalue [5 x i16] %1, 0 19 store i16 %.elt, ptr %bar.2, align 1 20 ret void, !dbg !19 21} 22 23; Function Attrs: nounwind readnone speculatable 24declare void @llvm.dbg.value(metadata, metadata, metadata) #6 25 26!llvm.dbg.cu = !{!0} 27!llvm.module.flags = !{!3, !4} 28!llvm.ident = !{!5} 29 30!0 = distinct !DICompileUnit(language: DW_LANG_C, file: !1, producer: "", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, retainedTypes: !2, globals: !2) 31!1 = !DIFile(filename: "a.c", directory: "b") 32!2 = !{} 33!3 = !{i32 2, !"Dwarf Version", i32 4} 34!4 = !{i32 2, !"Debug Info Version", i32 3} 35!5 = !{!""} 36!6 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 13, type: !7, isLocal: false, isDefinition: true, scopeLine: 14, isOptimized: false, unit: !0, retainedNodes: !2) 37!7 = !DISubroutineType(types: !8) 38!8 = !{!9, !9} 39!9 = !DIDerivedType(tag: DW_TAG_typedef, name: "MyStruct", file: !1, line: 11, baseType: !10) 40!10 = !DICompositeType(tag: DW_TAG_structure_type, file: !1, line: 9, size: 80, elements: !11) 41!11 = !{!12} 42!12 = !DIDerivedType(tag: DW_TAG_member, name: "Array", scope: !10, file: !1, line: 10, baseType: !13, size: 80) 43!13 = !DICompositeType(tag: DW_TAG_array_type, baseType: !14, size: 80, elements: !15) 44!14 = !DIBasicType(name: "int", size: 16, encoding: DW_ATE_signed) 45!15 = !{!16} 46!16 = !DISubrange(count: 5) 47!17 = !DILocalVariable(name: "bar", arg: 1, scope: !6, line: 13, type: !9) 48!18 = !DILocation(line: 13, column: 23, scope: !6) 49!19 = !DILocation(line: 15, column: 5, scope: !6) 50!20 = !DILocation(line: 16, column: 1, scope: !6) 51