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
94 lines
4.0 KiB
LLVM
94 lines
4.0 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 2
|
|
; RUN: llc -aarch64-streaming-hazard-size=0 < %s | FileCheck %s
|
|
|
|
target triple = "aarch64"
|
|
|
|
; This function would normally scavenge a stackslot from the callee-save
|
|
; area, which would lead to spilling 's0' to that stackslot before the
|
|
; smstop and filling it with 'addvl + <offset>' after the smstop because
|
|
; the frame-pointer is not available.
|
|
; This would not be valid, since the vector-length has changed so 'addvl'
|
|
; cannot be used. This is testing that the stackslot-scavenging is disabled
|
|
; when there are any streaming-mode-changing call-sequences in the
|
|
; function.
|
|
define void @test_no_stackslot_scavenging(float %f) #0 {
|
|
; CHECK-LABEL: test_no_stackslot_scavenging:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: stp d15, d14, [sp, #-96]! // 16-byte Folded Spill
|
|
; CHECK-NEXT: stp d13, d12, [sp, #16] // 16-byte Folded Spill
|
|
; CHECK-NEXT: stp d11, d10, [sp, #32] // 16-byte Folded Spill
|
|
; CHECK-NEXT: stp d9, d8, [sp, #48] // 16-byte Folded Spill
|
|
; CHECK-NEXT: str x29, [sp, #64] // 8-byte Spill
|
|
; CHECK-NEXT: stp x30, x24, [sp, #80] // 16-byte Folded Spill
|
|
; CHECK-NEXT: sub sp, sp, #16
|
|
; CHECK-NEXT: addvl sp, sp, #-1
|
|
; CHECK-NEXT: str s0, [sp, #12] // 4-byte Spill
|
|
; CHECK-NEXT: //APP
|
|
; CHECK-NEXT: //NO_APP
|
|
; CHECK-NEXT: smstop sm
|
|
; CHECK-NEXT: ldr s0, [sp, #12] // 4-byte Reload
|
|
; CHECK-NEXT: bl use_f
|
|
; CHECK-NEXT: smstart sm
|
|
; CHECK-NEXT: addvl sp, sp, #1
|
|
; CHECK-NEXT: add sp, sp, #16
|
|
; CHECK-NEXT: ldp x30, x24, [sp, #80] // 16-byte Folded Reload
|
|
; CHECK-NEXT: ldr x29, [sp, #64] // 8-byte Reload
|
|
; CHECK-NEXT: ldp d9, d8, [sp, #48] // 16-byte Folded Reload
|
|
; CHECK-NEXT: ldp d11, d10, [sp, #32] // 16-byte Folded Reload
|
|
; CHECK-NEXT: ldp d13, d12, [sp, #16] // 16-byte Folded Reload
|
|
; CHECK-NEXT: ldp d15, d14, [sp], #96 // 16-byte Folded Reload
|
|
; CHECK-NEXT: ret
|
|
%ptr = alloca <vscale x 16 x i8>
|
|
call void asm sideeffect "", "~{x24}"() nounwind
|
|
call void @use_f(float %f)
|
|
ret void
|
|
}
|
|
|
|
define void @test_no_stackslot_scavenging_with_fp(float %f, i64 %n) #0 "frame-pointer"="all" {
|
|
; CHECK-LABEL: test_no_stackslot_scavenging_with_fp:
|
|
; CHECK: // %bb.0:
|
|
; CHECK-NEXT: stp d15, d14, [sp, #-112]! // 16-byte Folded Spill
|
|
; CHECK-NEXT: stp d13, d12, [sp, #16] // 16-byte Folded Spill
|
|
; CHECK-NEXT: stp d11, d10, [sp, #32] // 16-byte Folded Spill
|
|
; CHECK-NEXT: stp d9, d8, [sp, #48] // 16-byte Folded Spill
|
|
; CHECK-NEXT: stp x29, x30, [sp, #64] // 16-byte Folded Spill
|
|
; CHECK-NEXT: add x29, sp, #64
|
|
; CHECK-NEXT: stp x28, x25, [sp, #80] // 16-byte Folded Spill
|
|
; CHECK-NEXT: stp x24, x19, [sp, #96] // 16-byte Folded Spill
|
|
; CHECK-NEXT: sub sp, sp, #16
|
|
; CHECK-NEXT: addvl sp, sp, #-1
|
|
; CHECK-NEXT: lsl x9, x0, #3
|
|
; CHECK-NEXT: mov x8, sp
|
|
; CHECK-NEXT: mov x19, sp
|
|
; CHECK-NEXT: str s0, [x19, #12] // 4-byte Spill
|
|
; CHECK-NEXT: add x9, x9, #15
|
|
; CHECK-NEXT: and x9, x9, #0xfffffffffffffff0
|
|
; CHECK-NEXT: sub x8, x8, x9
|
|
; CHECK-NEXT: mov sp, x8
|
|
; CHECK-NEXT: //APP
|
|
; CHECK-NEXT: //NO_APP
|
|
; CHECK-NEXT: smstop sm
|
|
; CHECK-NEXT: ldr s0, [x19, #12] // 4-byte Reload
|
|
; CHECK-NEXT: bl use_f
|
|
; CHECK-NEXT: smstart sm
|
|
; CHECK-NEXT: sub sp, x29, #64
|
|
; CHECK-NEXT: ldp x24, x19, [sp, #96] // 16-byte Folded Reload
|
|
; CHECK-NEXT: ldp x28, x25, [sp, #80] // 16-byte Folded Reload
|
|
; CHECK-NEXT: ldp x29, x30, [sp, #64] // 16-byte Folded Reload
|
|
; CHECK-NEXT: ldp d9, d8, [sp, #48] // 16-byte Folded Reload
|
|
; CHECK-NEXT: ldp d11, d10, [sp, #32] // 16-byte Folded Reload
|
|
; CHECK-NEXT: ldp d13, d12, [sp, #16] // 16-byte Folded Reload
|
|
; CHECK-NEXT: ldp d15, d14, [sp], #112 // 16-byte Folded Reload
|
|
; CHECK-NEXT: ret
|
|
%ptr2 = alloca i64, i64 %n, align 8
|
|
%ptr = alloca <vscale x 16 x i8>
|
|
call void asm sideeffect "", "~{x24},~{x25}"() nounwind
|
|
call void @use_f(float %f)
|
|
ret void
|
|
}
|
|
|
|
declare void @use_f(float)
|
|
declare void @use_f_and_ptr(float, ptr)
|
|
|
|
attributes #0 = { nounwind "target-features"="+sve,+sme" "aarch64_pstate_sm_enabled" }
|