Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/Hexagon/debug-prologue-loc.ll
T
derek.holloway 7502bf64a4
CodeQL / Analyze (actions) (push) Canceled after 0s
CodeQL / Analyze (python) (push) Canceled after 0s
pre-commit / pre-commit (push) Canceled after 0s
Multi-Arch CI / setup (push) Canceled after 0s
Publish build_manylinux_x86_64 images / publish_build_manylinux_x86_64 (push) Canceled after 0s
Setup (Multi-Arch) / setup (push) Canceled after 0s
Multi-Arch CI / Linux::${{ fromJSON(needs.setup.outputs.linux_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubi10 image / publish_no_rocm_image_ubi10 (push) Canceled after 0s
Multi-Arch CI / Windows::${{ fromJSON(needs.setup.outputs.windows_build_config || '{}').build_variant_label || 'skip' }} (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Multi-Arch CI / Manifest Diff (push) Canceled after 0s
TheRock Manifest Diff Report / Generate Manifest Diff Report (push) Canceled after 0s
Multi-Arch CI / CI Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_ocl_rt images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04_rocgdb images / publish_no_rocm_image_ubuntu24_04_rocgdb (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_ocl_rt (push) Canceled after 0s
Publish TheRock Docker image / build-and-push-image (push) Canceled after 0s
Unit Tests / Unit Tests :: ubuntu-24.04 (push) Canceled after 0s
Unit Tests / Unit Tests :: windows-2022 (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_media (push) Canceled after 0s
Unit Tests / Unit Tests Summary (push) Canceled after 0s
Publish no_rocm_image_ubuntu24_04 images / publish_no_rocm_image_ubuntu24_04_openmpi (push) Canceled after 0s
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

74 lines
3.2 KiB
LLVM

; RUN: llc -O2 -mtriple=hexagon < %s | FileCheck %s
; Broken after r326208.
; XFAIL: *
; CHECK: allocframe{{.*}}
; CHECK-NEXT: }
; CHECK-NEXT:{{.*}}tmp{{[0-9]+}}:
; CHECK-NEXT: .loc {{[0-9 ]+}} prologue_end
; Function Attrs: nounwind
define i32 @f0(i32 %a0, i32 %a1) #0 !dbg !5 {
b0:
%v0 = alloca i32, align 4
%v1 = alloca i32, align 4
%v2 = alloca ptr, align 4
store i32 %a0, ptr %v0, align 4
call void @llvm.dbg.declare(metadata ptr %v0, metadata !9, metadata !DIExpression()), !dbg !10
store i32 %a1, ptr %v1, align 4
call void @llvm.dbg.declare(metadata ptr %v1, metadata !11, metadata !DIExpression()), !dbg !12
call void @llvm.dbg.declare(metadata ptr %v2, metadata !13, metadata !DIExpression()), !dbg !15
store ptr %v1, ptr %v2, align 4, !dbg !15
%v3 = load i32, ptr %v0, align 4, !dbg !16
%v4 = load ptr, ptr %v2, align 4, !dbg !17
%v5 = call i32 @f1(ptr %v4), !dbg !18
%v6 = add nsw i32 %v3, %v5, !dbg !19
ret i32 %v6, !dbg !20
}
; Function Attrs: nounwind readnone speculatable
declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
; Function Attrs: nounwind
define i32 @f1(ptr %a0) #0 !dbg !21 {
b0:
%v0 = alloca ptr, align 4
store ptr %a0, ptr %v0, align 4
call void @llvm.dbg.declare(metadata ptr %v0, metadata !24, metadata !DIExpression()), !dbg !25
ret i32 0, !dbg !26
}
attributes #0 = { nounwind "target-cpu"="hexagonv60" }
attributes #1 = { nounwind readnone speculatable }
!llvm.dbg.cu = !{!0}
!llvm.module.flags = !{!3, !4}
!0 = distinct !DICompileUnit(language: DW_LANG_C99, file: !1, producer: "Clang", isOptimized: false, runtimeVersion: 0, emissionKind: FullDebug, enums: !2)
!1 = !DIFile(filename: "/tmp/test.c", directory: "/tmp")
!2 = !{}
!3 = !{i32 2, !"Dwarf Version", i32 4}
!4 = !{i32 2, !"Debug Info Version", i32 3}
!5 = distinct !DISubprogram(name: "foo", scope: !1, file: !1, line: 1, type: !6, isLocal: false, isDefinition: true, scopeLine: 1, flags: DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2)
!6 = !DISubroutineType(types: !7)
!7 = !{!8, !8, !8}
!8 = !DIBasicType(name: "int", size: 32, align: 32, encoding: DW_ATE_signed)
!9 = !DILocalVariable(name: "a", arg: 1, scope: !5, file: !1, line: 1, type: !8)
!10 = !DILocation(line: 1, column: 13, scope: !5)
!11 = !DILocalVariable(name: "b", arg: 2, scope: !5, file: !1, line: 1, type: !8)
!12 = !DILocation(line: 1, column: 20, scope: !5)
!13 = !DILocalVariable(name: "ptr", scope: !5, file: !1, line: 2, type: !14)
!14 = !DIDerivedType(tag: DW_TAG_pointer_type, baseType: !8, size: 32, align: 32)
!15 = !DILocation(line: 2, column: 8, scope: !5)
!16 = !DILocation(line: 3, column: 10, scope: !5)
!17 = !DILocation(line: 3, column: 16, scope: !5)
!18 = !DILocation(line: 3, column: 12, scope: !5)
!19 = !DILocation(line: 3, column: 11, scope: !5)
!20 = !DILocation(line: 3, column: 3, scope: !5)
!21 = distinct !DISubprogram(name: "bar", scope: !1, file: !1, line: 7, type: !22, isLocal: false, isDefinition: true, scopeLine: 7, flags: DIFlagPrototyped, isOptimized: false, unit: !0, retainedNodes: !2)
!22 = !DISubroutineType(types: !23)
!23 = !{!8, !14}
!24 = !DILocalVariable(name: "var", arg: 1, scope: !21, file: !1, line: 7, type: !14)
!25 = !DILocation(line: 7, column: 14, scope: !21)
!26 = !DILocation(line: 8, column: 3, scope: !21)