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
53 lines
3.0 KiB
YAML
53 lines
3.0 KiB
YAML
# RUN: not --crash llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx942 -run-pass=none -filetype=null %s 2>&1 | FileCheck %s
|
|
|
|
# sub16_sub17_sub18_sub19 is outside the bounds of a 512-bit
|
|
# register. Make sure the verification doesn't assert. This was only
|
|
# broken for targets that require even aligned VGPRs due to the manual
|
|
# alignment check.
|
|
|
|
---
|
|
name: uses_invalid_subregister_for_regclass
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
%0:vgpr_32 = V_MOV_B32_e32 0, implicit $exec
|
|
S_NOP 0, implicit-def %1:vreg_512_align2
|
|
|
|
|
|
; CHECK: *** Bad machine code: Invalid subregister index for virtual register ***
|
|
; CHECK-NEXT: - function: uses_invalid_subregister_for_regclass
|
|
; CHECK-NEXT: - basic block: %bb.0
|
|
; CHECK-NEXT: - instruction: GLOBAL_STORE_DWORDX4_SADDR %0:vgpr_32, %1.sub16_sub17_sub18_sub19:vreg_512_align2, undef $sgpr8_sgpr9, 80, 0, implicit $exec :: (store (s128), addrspace 1)
|
|
; CHECK-NEXT: - operand 1: %1.sub16_sub17_sub18_sub19:vreg_512_align2
|
|
; CHECK-NEXT: Register class VReg_512_Align2 does not support subreg index sub16_sub17_sub18_sub19
|
|
|
|
; CHECK: *** Bad machine code: Subtarget requires even aligned vector registers ***
|
|
; CHECK-NEXT: - function: uses_invalid_subregister_for_regclass
|
|
; CHECK-NEXT: - basic block: %bb.0
|
|
; CHECK-NEXT: - instruction: GLOBAL_STORE_DWORDX4_SADDR %0:vgpr_32, %2.sub16_sub17_sub18_sub19:vreg_512, undef $sgpr8_sgpr9, 80, 0, implicit $exec :: (store (s128), addrspace 1)
|
|
GLOBAL_STORE_DWORDX4_SADDR %0, %1.sub16_sub17_sub18_sub19, undef $sgpr8_sgpr9, 80, 0, implicit $exec :: (store (s128), addrspace 1)
|
|
|
|
; Test with unaligned class
|
|
; CHECK: *** Bad machine code: Invalid subregister index for virtual register ***
|
|
; CHECK-NEXT: - function: uses_invalid_subregister_for_regclass
|
|
; CHECK-NEXT: - basic block: %bb.0
|
|
; CHECK-NEXT: - instruction: GLOBAL_STORE_DWORDX4_SADDR %0:vgpr_32, %2.sub16_sub17_sub18_sub19:vreg_512, undef $sgpr8_sgpr9, 80, 0, implicit $exec :: (store (s128), addrspace 1)
|
|
; CHECK-NEXT: - operand 1: %2.sub16_sub17_sub18_sub19:vreg_512
|
|
; CHECK-NEXT: Register class VReg_512 does not support subreg index sub16_sub17_sub18_sub19
|
|
S_NOP 0, implicit-def %2:vreg_512
|
|
GLOBAL_STORE_DWORDX4_SADDR %0, %2.sub16_sub17_sub18_sub19, undef $sgpr8_sgpr9, 80, 0, implicit $exec :: (store (s128), addrspace 1)
|
|
|
|
; Test valid subregister index, but invalid effective register class.
|
|
; CHECK: *** Bad machine code: Illegal virtual register for instruction ***
|
|
; CHECK-NEXT: - function: uses_invalid_subregister_for_regclass
|
|
; CHECK-NEXT: - basic block: %bb.0
|
|
; CHECK-NEXT: - instruction: GLOBAL_STORE_DWORDX4_SADDR %0:vgpr_32, %2.sub0:vreg_512, undef $sgpr8_sgpr9, 80, 0, implicit $exec :: (store (s128), addrspace 1)
|
|
; CHECK-NEXT: - operand 1: %2.sub0:vreg_512
|
|
; CHECK-NEXT: VReg_512.sub0 cannot be used for AV_128_Align2 operands.
|
|
%3:sreg_32 = COPY %0
|
|
GLOBAL_STORE_DWORDX4_SADDR %0, %2.sub0, undef $sgpr8_sgpr9, 80, 0, implicit $exec :: (store (s128), addrspace 1)
|
|
|
|
S_ENDPGM 0
|
|
|
|
...
|