blob: ab6895d5b1a3dff8b4183a5a6fbff9337bdf35d3 [file] [edit]
# NOTE: Assertions have been autogenerated by utils/update_mir_test_checks.py UTC_ARGS: --version 6
# RUN: llc -mtriple=aarch64-unknown-linux-gnu -run-pass=finalize-isel %s -o - | FileCheck %s
--- |
define void @debug_uses() !dbg !5 {
entry:
ret void, !dbg !10
}
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!4}
!0 = distinct !DICompileUnit(language: DW_LANG_C, file: !1, producer: "debugify", isOptimized: true, runtimeVersion: 0, emissionKind: FullDebug)
!1 = !DIFile(filename: "entry-pstate-sm-debug-use.mir", directory: "/")
!4 = !{i32 2, !"Debug Info Version", i32 3}
!5 = distinct !DISubprogram(name: "debug_uses", linkageName: "debug_uses", scope: null, file: !1, line: 1, type: !6, scopeLine: 1, spFlags: DISPFlagDefinition | DISPFlagOptimized, unit: !0, retainedNodes: !8)
!6 = !DISubroutineType(types: !7)
!7 = !{}
!8 = !{!9, !12}
!9 = !DILocalVariable(name: "debug_only_state", scope: !5, file: !1, line: 1, type: !11)
!10 = !DILocation(line: 1, column: 1, scope: !5)
!11 = !DIBasicType(name: "long", size: 64, encoding: DW_ATE_signed)
!12 = !DILocalVariable(name: "used_state", scope: !5, file: !1, line: 1, type: !11)
...
---
name: debug_uses
alignment: 4
tracksRegLiveness: true
isSSA: true
registers:
- { id: 0, class: gpr64 }
- { id: 1, class: gpr64 }
body: |
bb.0.entry:
; CHECK-LABEL: name: debug_uses
; CHECK: DBG_VALUE $noreg, $noreg, !7, !DIExpression(), debug-location !10
; CHECK-NEXT: BL &__arm_sme_state, csr_aarch64_sme_abi_support_routines_preservemost_from_x2, implicit-def $lr, implicit $sp, implicit-def $x0
; CHECK-NEXT: [[COPY:%[0-9]+]]:gpr64 = COPY $x0
; CHECK-NEXT: DBG_VALUE [[COPY]], $noreg, !9, !DIExpression(), debug-location !10
; CHECK-NEXT: $x1 = COPY [[COPY]]
; CHECK-NEXT: RET_ReallyLR
%0:gpr64 = EntryPStateSM
DBG_VALUE %0, $noreg, !9, !DIExpression(), debug-location !10
%1:gpr64 = EntryPStateSM
DBG_VALUE %1, $noreg, !12, !DIExpression(), debug-location !10
$x1 = COPY %1
RET_ReallyLR
...