54 lines · plain
1# RUN: llc -O1 -filetype=asm -mtriple x86_64-unknown-linux-gnu -mcpu=x86-64 -o - %s -start-before=register-coalescer -stop-after=register-coalescer | FileCheck %s2 3--- |4 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"5 target triple = "x86_64-unknown-linux-gnu"6 7 define i32 @main() local_unnamed_addr !dbg !14 {8 entry:9 %shl = shl i32 undef, undef, !dbg !1910 tail call void @llvm.dbg.value(metadata i32 %shl, metadata !18, metadata !DIExpression()), !dbg !2011 ret i32 %shl, !dbg !2112 }13 14 declare void @llvm.dbg.value(metadata, metadata, metadata)15 16 !llvm.dbg.cu = !{!0}17 !llvm.module.flags = !{!12, !13}18 19 !0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "clang version 6.0.0", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2, globals: !2)20 !1 = !DIFile(filename: "bar.c", directory: "")21 !2 = !{}22 !7 = !DIBasicType(name: "int", size: 32, encoding: DW_ATE_signed)23 !12 = !{i32 2, !"Debug Info Version", i32 3}24 !13 = !{i32 1, !"wchar_size", i32 4}25 !14 = distinct !DISubprogram(name: "main", scope: !1, file: !1, line: 12, type: !15, isLocal: false, isDefinition: true, scopeLine: 12, isOptimized: true, unit: !0, retainedNodes: !17)26 !15 = !DISubroutineType(types: !16)27 !16 = !{!7}28 !17 = !{!18}29 !18 = !DILocalVariable(name: "bazinga", scope: !14, file: !1, line: 13, type: !7)30 !19 = !DILocalVariable(name: "bazinga2", scope: !14, file: !1, line: 13, type: !7)31 !20 = !DILocation(line: 14, column: 11, scope: !14)32 !21 = !DILocation(line: 13, column: 7, scope: !14)33 !22 = !DILocation(line: 16, column: 3, scope: !14)34 35...36---37name: main38alignment: 1639registers:40 - { id: 0, class: gr32, preferred-register: '' }41body: |42 bb.0.entry:43 %0 = MOV32r0 implicit-def dead $eflags, debug-location !2044 DBG_VALUE %0, _, !18, !DIExpression(), debug-location !2145 DBG_VALUE %0, _, !19, !DIExpression(), debug-location !2246 $eax = COPY killed %0, debug-location !2247 RET 0, killed $eax, debug-location !2248 49...50 51# CHECK: $eax = MOV32r052# CHECK-NEXT: DBG_VALUE $eax53# CHECK-NEXT: DBG_VALUE $eax54