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
100 lines
3.6 KiB
YAML
100 lines
3.6 KiB
YAML
# RUN: llc -mtriple=aarch64-none-linux-gnu -aarch64-stack-hazard-size=1024 -run-pass=prologepilog %s -o - | FileCheck %s
|
|
--- |
|
|
|
|
define void @stack_hazard_streaming_compat() "aarch64_pstate_sm_compatible" { entry: unreachable }
|
|
define void @stack_hazard_streaming_compat_emergency_spill_slot() "aarch64_pstate_sm_compatible" { entry: unreachable }
|
|
|
|
...
|
|
|
|
# +------------------+
|
|
# | GPR callee-saves |
|
|
# +------------------+ <- FP
|
|
# | <hazard padding> |
|
|
# +------------------+
|
|
# | FPR locals |
|
|
# | %stack.1 |
|
|
# +------------------+
|
|
# | <hazard padding> |
|
|
# +------------------+
|
|
# | GPR locals |
|
|
# | %stack.2 |
|
|
# | <emergency spill>|
|
|
# +------------------+ <- BP
|
|
# | <VLA> |
|
|
# +------------------+ <- SP (can't be used due to VLA)
|
|
|
|
# In this case without the base pointer we'd need the emergency spill slot to
|
|
# access both %stack.1 and %stack.2. With the base pointer we can reach both
|
|
# without spilling.
|
|
|
|
name: stack_hazard_streaming_compat
|
|
# CHECK-LABEL: name: stack_hazard_streaming_compat
|
|
# CHECK: bb.0:
|
|
# CHECK: STRDui $d0, $x19, 131
|
|
# CHECK-NEXT: STRXui $x0, $x19, 1
|
|
# CHECK: bb.1:
|
|
tracksRegLiveness: true
|
|
frameInfo:
|
|
isFrameAddressTaken: true
|
|
stack:
|
|
- { id: 0, type: variable-sized, alignment: 1 }
|
|
- { id: 1, size: 8, alignment: 8 }
|
|
- { id: 2, size: 8, alignment: 8 }
|
|
body: |
|
|
bb.0:
|
|
liveins: $x0, $x8, $d0
|
|
$x9 = LDRXui $x0, 0 :: (load (s64))
|
|
STRDui $d0, %stack.1, 0 :: (store (s64) into %stack.1)
|
|
STRXui $x0, %stack.2, 0 :: (store (s64) into %stack.2)
|
|
B %bb.1
|
|
bb.1:
|
|
liveins: $x1, $x2, $x3, $x4, $x5, $x6, $x7, $x8, $x9, $x10, $x11, $x12, $x13, $x14, $x15, $x16, $x17, $x18, $x19, $x20, $x21, $x22, $x23, $x24, $x25, $x26, $x27, $x28, $lr
|
|
RET_ReallyLR implicit $x19, implicit $x20, implicit $x21, implicit $x22, implicit $x23, implicit $x24, implicit $x25, implicit $x26, implicit $x27, implicit $x28, implicit $lr
|
|
...
|
|
---
|
|
# +------------------+
|
|
# | GPR callee-saves |
|
|
# +------------------+ <- FP
|
|
# | <hazard padding> |
|
|
# +------------------+
|
|
# | FPR locals |
|
|
# | %stack.1 |
|
|
# +------------------+
|
|
# | <hazard padding> |
|
|
# +------------------+
|
|
# | GPR locals |
|
|
# | %stack.2 | (very large)
|
|
# | <emergency spill>|
|
|
# +------------------+ <- BP
|
|
# | <VLA> |
|
|
# +------------------+ <- SP (can't be used due to VLA)
|
|
|
|
# In this case we need to use the emergency spill slot to access %stack.1 as it
|
|
# is too far from the frame pointer and the base pointer to directly address.
|
|
# Note: This also tests that the <emergency spill> located near the SP/BP.
|
|
|
|
name: stack_hazard_streaming_compat_emergency_spill_slot
|
|
# CHECK-LABEL: name: stack_hazard_streaming_compat_emergency_spill_slot
|
|
# CHECK: bb.0:
|
|
# CHECK: STRXui killed $[[SCRATCH:x[0-9]+]], $x19, 0
|
|
# CHECK-NEXT: $[[SCRATCH]] = ADDXri $x19, 1056, 0
|
|
# CHECK-NEXT: STRDui $d0, killed $[[SCRATCH]], 4095
|
|
# CHECK-NEXT: $[[SCRATCH]] = LDRXui $x19, 0
|
|
# CHECK: bb.1:
|
|
tracksRegLiveness: true
|
|
frameInfo:
|
|
isFrameAddressTaken: true
|
|
stack:
|
|
- { id: 0, type: variable-sized, alignment: 1 }
|
|
- { id: 1, size: 8, alignment: 8 }
|
|
- { id: 2, size: 32761, alignment: 8 }
|
|
body: |
|
|
bb.0:
|
|
liveins: $x0, $x8, $d0
|
|
$x9 = LDRXui $x0, 0 :: (load (s64))
|
|
STRDui $d0, %stack.1, 0 :: (store (s64) into %stack.1)
|
|
B %bb.1
|
|
bb.1:
|
|
liveins: $x0, $x1, $x2, $x3, $x4, $x5, $x6, $x7, $x8, $x9, $x10, $x11, $x12, $x13, $x14, $x15, $x16, $x17, $x18, $x19, $x20, $x21, $x22, $x23, $x24, $x25, $x26, $x27, $x28, $lr
|
|
RET_ReallyLR implicit $x19, implicit $x20, implicit $x21, implicit $x22, implicit $x23, implicit $x24, implicit $x25, implicit $x26, implicit $x27, implicit $x28, implicit $lr
|