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.7 KiB
YAML
100 lines
3.7 KiB
YAML
# RUN: llc -mtriple=hexagon -run-pass prologepilog %s -o - | FileCheck %s
|
|
# RUN: llc -mtriple=hexagon -run-pass prologepilog -spill-func-threshold=0 %s -o - | FileCheck --check-prefix=SPILL-FUNC %s
|
|
# RUN: llc -mtriple=hexagon -run-pass prologepilog -verify-machineinstrs %s -o - | FileCheck %s
|
|
#
|
|
# Verify that PS_aligna is placed AFTER all CSR spills.
|
|
#
|
|
# CHECK-LABEL: name: test_aligna_expansion
|
|
# CHECK: machineFunctionInfo:
|
|
# CHECK-NEXT: stackAlignBaseReg: '$r16'
|
|
# CHECK: S2_allocframe
|
|
# CHECK: S2_storerd_io $r30, -8
|
|
# CHECK: S2_storerd_io $r30, -16
|
|
# CHECK: S2_storerd_io $r30, -24
|
|
# CHECK: S2_storerd_io $r30, -32
|
|
# CHECK: S2_storerd_io $r30, -40
|
|
# CHECK: S2_storerd_io $r30, -48
|
|
# CHECK: PS_aligna
|
|
# CHECK-NOT: S2_storerd_io
|
|
#
|
|
# SPILL-FUNC-LABEL: name: test_aligna_expansion
|
|
# SPILL-FUNC: machineFunctionInfo:
|
|
# SPILL-FUNC-NEXT: stackAlignBaseReg: '$r16'
|
|
# SPILL-FUNC: S2_allocframe
|
|
# SPILL-FUNC: SAVE_REGISTERS_CALL_V4
|
|
# SPILL-FUNC: PS_aligna
|
|
# SPILL-FUNC-NOT: SAVE_REGISTERS_CALL_V4
|
|
|
|
--- |
|
|
declare void @external_func()
|
|
define void @test_aligna_expansion() { ret void }
|
|
...
|
|
|
|
---
|
|
name: test_aligna_expansion
|
|
alignment: 16
|
|
tracksRegLiveness: true
|
|
machineFunctionInfo:
|
|
stackAlignBaseReg: '$r16'
|
|
frameInfo:
|
|
maxAlignment: 128
|
|
adjustsStack: true
|
|
hasCalls: true
|
|
maxCallFrameSize: 4294967295
|
|
stack:
|
|
- { id: 0, name: '', type: variable-sized, offset: 0, alignment: 128 }
|
|
- { id: 1, name: '', type: spill-slot, offset: 0, size: 4, alignment: 4 }
|
|
body: |
|
|
bb.0:
|
|
successors: %bb.1(0x80000000)
|
|
liveins: $r0, $r1, $r2, $r3, $r4, $r5
|
|
|
|
renamable $r17 = COPY $r0
|
|
renamable $r6 = nuw A2_addi killed $r0, 7
|
|
renamable $r6 = A2_andir killed renamable $r6, -8
|
|
S2_storeri_io %stack.1, 0, killed $r5 :: (store (s32) into %stack.1)
|
|
renamable $r19 = COPY killed $r4
|
|
renamable $r20 = COPY killed $r3
|
|
renamable $r21 = COPY killed $r2
|
|
renamable $r22 = COPY killed $r1
|
|
$r16 = PS_aligna 128, implicit killed $r30
|
|
renamable $r25 = A2_tfrsi 0
|
|
renamable $r2 = A2_tfrsi 0
|
|
renamable $r23 = PS_alloca killed renamable $r6, 128, implicit-def dead $r29
|
|
|
|
bb.1:
|
|
successors: %bb.2(0x80000000)
|
|
liveins: $r2, $r17, $r19, $r20, $r21, $r22, $r23, $r25
|
|
|
|
renamable $r24 = A2_or killed renamable $r2, renamable $r19
|
|
renamable $r26 = A2_tfrsi 0
|
|
renamable $r27 = COPY renamable $r22
|
|
renamable $r18 = A2_tfrsi 0
|
|
|
|
bb.2:
|
|
successors: %bb.2(0x7c000000), %bb.3(0x04000000)
|
|
liveins: $r17, $r18, $r19, $r20, $r21, $r22, $r23, $r24, $r25, $r26, $r27
|
|
|
|
renamable $r2 = A2_min renamable $r27, renamable $r25
|
|
ADJCALLSTACKDOWN 0, 0, implicit-def $r29, implicit-def dead $r30, implicit killed $r31, implicit killed $r30, implicit $r29
|
|
$r0 = COPY renamable $r23
|
|
$r1 = COPY renamable $r20
|
|
$r3 = COPY renamable $r24
|
|
renamable $r2 = A2_add killed renamable $r2, renamable $r26
|
|
renamable $r18 = A2_add killed renamable $r18, renamable $r22
|
|
S2_storeri_io renamable $r21, 0, renamable $r17
|
|
J2_call @external_func, hexagoncsr, implicit-def dead $pc, implicit-def dead $r31, implicit $r29, implicit killed $r0, implicit killed $r1, implicit killed $r2, implicit killed $r3, implicit-def $r29
|
|
renamable $p0 = C2_cmpgti renamable $r18, -1
|
|
ADJCALLSTACKUP 0, 0, implicit-def dead $r29, implicit-def dead $r30, implicit-def dead $r31, implicit killed $r29
|
|
renamable $r27 = A2_add killed renamable $r27, renamable $r22
|
|
renamable $r26 = A2_sub killed renamable $r26, renamable $r22
|
|
J2_jumpf killed renamable $p0, %bb.2, implicit-def $pc
|
|
|
|
bb.3:
|
|
successors: %bb.1(0x80000000)
|
|
liveins: $r17, $r19, $r20, $r21, $r22, $r23, $r25
|
|
|
|
renamable $r2 = L2_loadri_io %stack.1, 0 :: (load (s32) from %stack.1)
|
|
J2_jump %bb.1, implicit-def $pc
|
|
...
|