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
66 lines
2.7 KiB
YAML
66 lines
2.7 KiB
YAML
# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 -verify-machineinstrs --stress-regalloc=2 -start-before=greedy -stop-after=virtregrewriter \
|
|
# RUN: %s -o - | FileCheck %s
|
|
|
|
# Test that S_MOV_B64 rematerialization is shrunk to S_MOV_B32 when only a
|
|
# single 32-bit subreg of the defined value is used at the remat point.
|
|
|
|
# CHECK-LABEL: name: remat_shrink_s_mov_b64
|
|
---
|
|
name: remat_shrink_s_mov_b64
|
|
tracksRegLiveness: true
|
|
body: |
|
|
bb.0:
|
|
liveins: $sgpr8_sgpr9
|
|
%0:sreg_64_xexec = COPY $sgpr8_sgpr9
|
|
|
|
; 0x0000002A_00000539: Lo_32 = 1337, Hi_32 = 42
|
|
undef %1.sub0_sub1:sgpr_128 = S_MOV_B64 180388627769
|
|
; 0x00000007_00000065: Lo_32 = 101, Hi_32 = 7
|
|
undef %2.sub0_sub1:sgpr_128 = S_MOV_B64 30064771173
|
|
%2.sub2_sub3:sgpr_128 = S_MOV_B64 2
|
|
undef %3.sub2_sub3:sgpr_128 = S_MOV_B64 30064771173
|
|
undef %4.sub2_sub3:sgpr_128 = S_MOV_B64 180388627769
|
|
undef %5.sub0_sub1:sgpr_128 = S_MOV_B64 180388627769
|
|
%6:sreg_64 = S_MOV_B64_IMM_PSEUDO 65536
|
|
S_NOP 0, implicit %1.sub0
|
|
S_NOP 0, implicit %1.sub1
|
|
|
|
; CHECK: S_NOP 0, implicit-def $sgpr0_sgpr1
|
|
S_NOP 0, implicit-def $sgpr0_sgpr1, implicit-def $sgpr2_sgpr3, implicit-def $sgpr4_sgpr5, implicit-def $sgpr6_sgpr7
|
|
|
|
; %2: uses both sub0 and sub1 - no shrink expected.
|
|
S_NOP 0, implicit %2.sub0
|
|
S_NOP 0, implicit %2.sub1
|
|
|
|
; %1: both lanes used after barrier, rematerialized as S_MOV_B64, not shrunk.
|
|
; CHECK: renamable $[[REG1LO:sgpr[0-9]+]]_[[REG1HI:sgpr[0-9]+]] = S_MOV_B64 180388627769
|
|
; CHECK-NEXT: S_NOP 0, implicit renamable $[[REG1HI]]
|
|
; CHECK-NEXT: S_NOP 0, implicit killed renamable $[[REG1LO]]
|
|
S_NOP 0, implicit %1.sub1
|
|
S_NOP 0, implicit %1.sub0
|
|
|
|
; %3: only sub3 used - shrink to S_MOV_B32 with Hi_32(0x0000000700000065) = 7.
|
|
; CHECK: renamable $[[REG3:sgpr[0-9]+]] = S_MOV_B32 7
|
|
; CHECK-NEXT: S_NOP 0, implicit renamable $[[REG3]]
|
|
; CHECK-NEXT: S_NOP 0, implicit killed renamable $[[REG3]]
|
|
S_NOP 0, implicit %3.sub3
|
|
S_NOP 0, implicit %3.sub3
|
|
|
|
; %4: only sub2 used - shrink to S_MOV_B32 with Lo_32(0x0000002A00000539) = 1337.
|
|
; CHECK: renamable $[[REG4:sgpr[0-9]+]] = S_MOV_B32 1337
|
|
; CHECK-NEXT: S_NOP 0, implicit killed renamable $[[REG4]]
|
|
S_NOP 0, implicit %4.sub2
|
|
|
|
; %5: sub0_sub1 def, only sub1 used - shrink to S_MOV_B32 with Hi_32(0x0000002A00000539) = 42.
|
|
; CHECK: renamable $[[REG5:sgpr[0-9]+]] = S_MOV_B32 42
|
|
; CHECK-NEXT: S_NOP 0, implicit killed renamable $[[REG5]]
|
|
S_NOP 0, implicit %5.sub1
|
|
|
|
; CHECK: renamable $[[REG6:sgpr[0-9]+]] = S_MOV_B32 65536
|
|
; CHECK-NEXT: S_NOP 0, implicit killed renamable $[[REG6]]
|
|
S_NOP 0, implicit %6.sub0
|
|
|
|
; CHECK: S_ENDPGM 0
|
|
S_ENDPGM 0, implicit %0, implicit %1.sub0
|
|
...
|