brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.9 KiB · 34c099f Raw
49 lines · plain
1# RUN: not --crash llc -mtriple aarch64-linux-gnu -verify-machineinstrs -start-before=aarch64-asm-printer \2# RUN:   -filetype=obj -o /dev/null %s 2>&1 | FileCheck %s3 4# CHECK: *** Bad machine code: Non-terminator instruction after the first terminator ***5# CHECK-NEXT: - function:    f16# CHECK-NEXT: - basic block: %bb.07# CHECK-NEXT: - instruction: DBG_VALUE $noreg, $noreg, !"1", !DIExpression(DW_OP_LLVM_entry_value, 1)8# CHECK-NEXT: First terminator was:   RET undef $lr, debug-location !12; /tmp/foo.ll:2:19 10--- |11  target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128"12  target triple = "aarch64"13 14  define void @f1() !dbg !6 {15    %add1 = add i32 0, 0, !dbg !1116    call void @llvm.dbg.value(metadata i32 %add1, metadata !9, metadata !DIExpression()), !dbg !1117    ret void, !dbg !1218  }19 20  declare void @llvm.dbg.value(metadata, metadata, metadata)21 22  !llvm.dbg.cu = !{!0}23  !llvm.debugify = !{!3, !4}24  !llvm.module.flags = !{!5}25 26  !0 = distinct !DICompileUnit(language: DW_LANG_C, file: !1, producer: "debugify", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)27  !1 = !DIFile(filename: "/tmp/foo.ll", directory: "/")28  !2 = !{}29  !3 = !{i32 2}30  !4 = !{i32 1}31  !5 = !{i32 2, !"Debug Info Version", i32 3}32  !6 = distinct !DISubprogram(name: "f1", linkageName: "f1", scope: null, file: !1, line: 1, type: !7, scopeLine: 1, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !8)33  !7 = !DISubroutineType(types: !2)34  !8 = !{!9}35  !9 = !DILocalVariable(name: "1", scope: !6, file: !1, line: 1, type: !10)36  !10 = !DIBasicType(name: "ty32", size: 32, encoding: DW_ATE_unsigned)37  !11 = !DILocation(line: 1, column: 1, scope: !6)38  !12 = !DILocation(line: 2, column: 1, scope: !6)39 40...41---42name:            f143body:             |44  bb.0 (%ir-block.0):45    RET undef $lr, debug-location !1246    DBG_VALUE $noreg, $noreg, !9, !DIExpression(DW_OP_LLVM_entry_value, 1), debug-location !1147 48...49