brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.0 KiB · 88402c4 Raw
50 lines · plain
1; RUN: llc < %s -O0 -stop-after=livedebugvalues -o - | FileCheck %s2 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(ptr %p) !dbg !4 {7bb:8  %tmp = load i32, ptr %p, align 4, !dbg !79  ; CHECK: $eax = MOV32rm killed {{.*}} $rdi, {{.*}} debug-location !7 :: (load (s32) from %ir.p)10  ; CHECK-NEXT: $rax = KILL killed renamable $eax, debug-location !711  ; CHECK-NEXT: MOV64mr $rsp, 1, $noreg, -8, $noreg, $rax :: (store (s64) into %stack.0)12  ; CHECK-NEXT: SUB64ri32 renamable $rax, 3, implicit-def $eflags, debug-location !713 14  switch i32 %tmp, label %bb7 [15    i32 0, label %bb116    i32 1, label %bb217    i32 2, label %bb318    i32 3, label %bb419  ], !dbg !820 21bb1:                                              ; preds = %bb22  unreachable23 24bb2:                                              ; preds = %bb25  unreachable26 27bb3:                                              ; preds = %bb28  unreachable29 30bb4:                                              ; preds = %bb31  unreachable32 33bb7:                                              ; preds = %bb34  ret void, !dbg !935}36 37!llvm.dbg.cu = !{!0}38!llvm.module.flags = !{!2, !3}39 40!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)41!1 = !DIFile(filename: "/Users/vsk/src/llvm.org-main/llvm/lib/Demangle/ItaniumDemangle.cpp", directory: "/Users/vsk/src/builds/llvm.org-main-RA-stage2")42!2 = !{i32 2, !"Debug Info Version", i32 3}43!3 = !{i32 7, !"PIC Level", i32 2}44!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)45!5 = !DISubroutineType(types: !6)46!6 = !{}47!7 = !DILocation(line: 1307, column: 13, scope: !4)48!8 = !DILocation(line: 1307, column: 5, scope: !4)49!9 = !DILocation(line: 1327, column: 3, scope: !4)50