45 lines · plain
1; NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py2; RUN: llc < %s -mtriple=x86_64-linux-gnu -O0 -global-isel -stop-after instruction-select | FileCheck %s3 4define void @foo(i32 %n) !dbg !7 {5 ; CHECK-LABEL: name: foo6 ; CHECK: bb.1.entry:7 ; CHECK-NEXT: liveins: $edi8 ; CHECK-NEXT: {{ $}}9 ; CHECK-NEXT: DBG_VALUE %2:gr32, $noreg, !12, !DIExpression(), debug-location !1910 ; CHECK-NEXT: RET 0, debug-location !2011entry:12 %m = mul i32 %n, 1313 call void @llvm.dbg.value(metadata i32 %m, i64 0, metadata !12, metadata !19), !dbg !2014 ret void, !dbg !2115}16 17declare void @llvm.dbg.value(metadata, i64, metadata, metadata)18 19!llvm.dbg.cu = !{!0}20!llvm.module.flags = !{!3, !4, !5}21!llvm.ident = !{!6}22 23!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 5.0.1", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)24!1 = !DIFile(filename: "vla.c", directory: "/path/to")25!2 = !{}26!3 = !{i32 2, !"Dwarf Version", i32 4}27!4 = !{i32 2, !"Debug Info Version", i32 3}28!5 = !{i32 1, !"wchar_size", i32 4}29!6 = !{!"clang version 5.0.1"}30!7 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 20, type: !8, isLocal: false, isDefinition: true, scopeLine: 20, flags: DIFlagPrototyped, isOptimized: true, unit: !0, retainedNodes: !11)31!8 = !DISubroutineType(types: !9)32!9 = !{null, !10}33!10 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)34!11 = !{!12, !13, !15}35!12 = !DILocalVariable(name: "n", arg: 1, scope: !7, file: !1, line: 20, type: !10)36!13 = !DILocalVariable(name: "vla_expr", scope: !7, file: !1, line: 21, type: !14)37!14 = !DIBasicType(name: "long unsigned int", size: 64, encoding: DW_ATE_unsigned)38!15 = !DILocalVariable(name: "vla", scope: !7, file: !1, line: 21, type: !16)39!16 = !DICompositeType(tag: DW_TAG_array_type, baseType: !10, align: 32, elements: !17)40!17 = !{!18, !18}41!18 = !DISubrange(count: !13)42!19 = !DIExpression()43!20 = !DILocation(line: 20, column: 14, scope: !7)44!21 = !DILocation(line: 22, column: 1, scope: !7)45