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
64 lines
1.4 KiB
LLVM
64 lines
1.4 KiB
LLVM
; RUN: llc -mtriple=aarch64 -aarch64-min-jump-table-entries=4 -stack-size-section %s -o - | FileCheck %s
|
|
|
|
; CHECK-LABEL: .section .stack_sizes,"o",@progbits,.text{{$}}
|
|
; CHECK-NEXT: .xword .Lfunc_begin0
|
|
; CHECK-NEXT: .byte 0
|
|
define void @empty() {
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: .section .stack_sizes,"o",@progbits,.text{{$}}
|
|
; CHECK-NEXT: .xword .Lfunc_begin1
|
|
; CHECK-NEXT: .ascii "\200\001"
|
|
define void @non_empty() #0 {
|
|
alloca [32 x i32]
|
|
ret void
|
|
}
|
|
|
|
; CHECK-LABEL: dynalloc:
|
|
; CHECK-NOT: .section .stack_sizes
|
|
define void @dynalloc(i32 %n) #0 {
|
|
alloca i32, i32 %n
|
|
ret void
|
|
}
|
|
|
|
; Check that .stack_sizes section is linked to the function's section (.text),
|
|
; and not to the section containing the jump table (.rodata).
|
|
; CHECK-LABEL: linked_section:
|
|
; CHECK: .section .rodata,"a",@progbits
|
|
; CHECK: .section .stack_sizes,"o",@progbits,.text
|
|
; CHECK-NEXT: .xword .Lfunc_begin3
|
|
; CHECK-NEXT: .ascii "\220\001"
|
|
declare void @case0()
|
|
declare void @case1()
|
|
declare void @case2()
|
|
declare void @case3()
|
|
define void @linked_section(i32 %x) {
|
|
%arr = alloca [32 x i32]
|
|
switch i32 %x, label %sw.epilog [
|
|
i32 0, label %sw.bb0
|
|
i32 1, label %sw.bb1
|
|
i32 2, label %sw.bb2
|
|
i32 3, label %sw.bb3
|
|
]
|
|
|
|
sw.bb0:
|
|
call void @case0()
|
|
ret void
|
|
|
|
sw.bb1:
|
|
call void @case1()
|
|
ret void
|
|
|
|
sw.bb2:
|
|
call void @case2()
|
|
ret void
|
|
|
|
sw.bb3:
|
|
call void @case3()
|
|
ret void
|
|
|
|
sw.epilog:
|
|
ret void
|
|
}
|