1; RUN: llc < %s -O0 -stop-after=livedebugvalues -o - | FileCheck %s 2 3target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128" 4target triple = "x86_64-apple-macosx10.13.0" 5 6define void @foo(i32* %p) !dbg !4 { 7bb: 8 %tmp = load i32, i32* %p, align 4, !dbg !7 9 ; CHECK: $eax = MOV32rm killed {{.*}} $rdi, {{.*}} debug-location !7 :: (load 4 from %ir.p) 10 ; CHECK-NEXT: $edi = MOV32rr killed $eax, implicit-def $rdi, debug-location !7 11 ; CHECK-NEXT: $rcx = MOV64rr $rdi, debug-location !7 12 13 switch i32 %tmp, label %bb7 [ 14 i32 0, label %bb1 15 i32 1, label %bb2 16 i32 2, label %bb3 17 i32 3, label %bb4 18 ], !dbg !8 19 20bb1: ; preds = %bb 21 unreachable 22 23bb2: ; preds = %bb 24 unreachable 25 26bb3: ; preds = %bb 27 unreachable 28 29bb4: ; preds = %bb 30 unreachable 31 32bb7: ; preds = %bb 33 ret void, !dbg !9 34} 35 36!llvm.dbg.cu = !{!0} 37!llvm.module.flags = !{!2, !3} 38 39!0 = distinct !DICompileUnit(language: DW_LANG_C_plus_plus, file: !1, producer: "clang version 7.0.0 (trunk 330770) (llvm/trunk 330769)", isOptimized: true, runtimeVersion: 0, emissionKind: LineTablesOnly) 40!1 = !DIFile(filename: "/Users/vsk/src/llvm.org-master/llvm/lib/Demangle/ItaniumDemangle.cpp", directory: "/Users/vsk/src/builds/llvm.org-master-RA-stage2") 41!2 = !{i32 2, !"Debug Info Version", i32 3} 42!3 = !{i32 7, !"PIC Level", i32 2} 43!4 = distinct !DISubprogram(name: "printLeft", scope: !1, file: !1, line: 1306, type: !5, isLocal: true, isDefinition: true, scopeLine: 1306, flags: DIFlagPrototyped, isOptimized: true, unit: !0) 44!5 = !DISubroutineType(types: !6) 45!6 = !{} 46!7 = !DILocation(line: 1307, column: 13, scope: !4) 47!8 = !DILocation(line: 1307, column: 5, scope: !4) 48!9 = !DILocation(line: 1327, column: 3, scope: !4) 49