| # NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 6 |
| # RUN: llc -mtriple=riscv64 -run-pass=riscv-merge-base-offset \ |
| # RUN: -verify-machineinstrs %s -o - | FileCheck %s |
| |
| --- | |
| @values = external hidden global [2 x i64] |
| |
| define void @debug_only() !dbg !4 { |
| ret void |
| } |
| |
| !llvm.dbg.cu = !{!0} |
| !llvm.module.flags = !{!2, !3} |
| |
| !0 = distinct !DICompileUnit(language: DW_LANG_C11, file: !1, isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug) |
| !1 = !DIFile(filename: "merge-base-offset-debug-only.c", directory: "") |
| !2 = !{i32 7, !"Dwarf Version", i32 5} |
| !3 = !{i32 2, !"Debug Info Version", i32 3} |
| !4 = distinct !DISubprogram(name: "debug_only", scope: !1, file: !1, line: 1, type: !5, scopeLine: 1, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !7) |
| !5 = !DISubroutineType(types: !6) |
| !6 = !{} |
| !7 = !{!8} |
| !8 = !DILocalVariable(name: "p", scope: !4, file: !1, line: 2, type: !9) |
| !9 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !10, size: 64) |
| !10 = !DIBasicType(name: "long", size: 64, encoding: DW_ATE_signed) |
| !11 = !DILocation(line: 0, scope: !4) |
| ... |
| --- |
| name: debug_only |
| tracksRegLiveness: true |
| body: | |
| bb.0: |
| ; CHECK-LABEL: name: debug_only |
| ; CHECK: [[PseudoMovAddr:%[0-9]+]]:gpr = PseudoMovAddr target-flags(riscv-hi) @values, target-flags(riscv-lo) @values |
| ; CHECK-NEXT: DBG_VALUE [[PseudoMovAddr]], $noreg, !8, !DIExpression(DW_OP_stack_value), debug-location !DILocation(line: 0, scope: !4) |
| ; CHECK-NEXT: PseudoRET |
| %0:gpr = PseudoMovAddr target-flags(riscv-hi) @values, target-flags(riscv-lo) @values |
| DBG_VALUE %0, $noreg, !8, !DIExpression(DW_OP_stack_value), debug-location !11 |
| PseudoRET |
| ... |