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
173 lines
8.9 KiB
LLVM
173 lines
8.9 KiB
LLVM
; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 4
|
|
; RUN: llc -global-isel=0 -mtriple=amdgcn -mcpu=gfx1250 < %s | FileCheck -check-prefixes=GFX1250,GFX1250-SDAG %s
|
|
; RUN: llc -global-isel=1 -new-reg-bank-select -mtriple=amdgcn -mcpu=gfx1250 < %s | FileCheck -check-prefixes=GFX1250,GFX1250-GISEL %s
|
|
|
|
declare <2 x i32> @llvm.amdgcn.perm.pk16.b4.u4(i32, i32, <2 x i32>)
|
|
declare <3 x i32> @llvm.amdgcn.perm.pk16.b6.u4(i32, i64, <2 x i32>)
|
|
declare <4 x i32> @llvm.amdgcn.perm.pk16.b8.u4(i64, i64, <2 x i32>)
|
|
|
|
define void @test_perm_pk16_b4_u4(i32 %a, i32 %b, <2 x i32> %c, ptr %out) {
|
|
; GFX1250-LABEL: test_perm_pk16_b4_u4:
|
|
; GFX1250: ; %bb.0:
|
|
; GFX1250-NEXT: s_wait_loadcnt_dscnt 0x0
|
|
; GFX1250-NEXT: s_wait_kmcnt 0x0
|
|
; GFX1250-NEXT: v_perm_pk16_b4_u4 v[0:1], v0, v1, v[2:3]
|
|
; GFX1250-NEXT: flat_store_b64 v[4:5], v[0:1]
|
|
; GFX1250-NEXT: s_wait_dscnt 0x0
|
|
; GFX1250-NEXT: s_set_pc_i64 s[30:31]
|
|
%ret = tail call <2 x i32> @llvm.amdgcn.perm.pk16.b4.u4(i32 %a, i32 %b, <2 x i32> %c)
|
|
store <2 x i32> %ret, ptr %out, align 8
|
|
ret void
|
|
}
|
|
|
|
define void @test_perm_pk16_b6_u4(i32 %a, i64 %b, <2 x i32> %c, ptr %out) {
|
|
; GFX1250-SDAG-LABEL: test_perm_pk16_b6_u4:
|
|
; GFX1250-SDAG: ; %bb.0:
|
|
; GFX1250-SDAG-NEXT: s_wait_loadcnt_dscnt 0x0
|
|
; GFX1250-SDAG-NEXT: s_wait_kmcnt 0x0
|
|
; GFX1250-SDAG-NEXT: v_dual_mov_b32 v7, v6 :: v_dual_mov_b32 v9, v4
|
|
; GFX1250-SDAG-NEXT: v_dual_mov_b32 v8, v3 :: v_dual_mov_b32 v3, v2
|
|
; GFX1250-SDAG-NEXT: v_dual_mov_b32 v2, v1 :: v_dual_mov_b32 v6, v5
|
|
; GFX1250-SDAG-NEXT: s_delay_alu instid0(VALU_DEP_1)
|
|
; GFX1250-SDAG-NEXT: v_perm_pk16_b6_u4 v[0:2], v0, v[2:3], v[8:9]
|
|
; GFX1250-SDAG-NEXT: flat_store_b96 v[6:7], v[0:2]
|
|
; GFX1250-SDAG-NEXT: s_wait_dscnt 0x0
|
|
; GFX1250-SDAG-NEXT: s_set_pc_i64 s[30:31]
|
|
;
|
|
; GFX1250-GISEL-LABEL: test_perm_pk16_b6_u4:
|
|
; GFX1250-GISEL: ; %bb.0:
|
|
; GFX1250-GISEL-NEXT: s_wait_loadcnt_dscnt 0x0
|
|
; GFX1250-GISEL-NEXT: s_wait_kmcnt 0x0
|
|
; GFX1250-GISEL-NEXT: v_dual_mov_b32 v8, v1 :: v_dual_mov_b32 v9, v2
|
|
; GFX1250-GISEL-NEXT: v_dual_mov_b32 v2, v3 :: v_dual_mov_b32 v3, v4
|
|
; GFX1250-GISEL-NEXT: v_dual_mov_b32 v4, v5 :: v_dual_mov_b32 v5, v6
|
|
; GFX1250-GISEL-NEXT: s_delay_alu instid0(VALU_DEP_2)
|
|
; GFX1250-GISEL-NEXT: v_perm_pk16_b6_u4 v[0:2], v0, v[8:9], v[2:3]
|
|
; GFX1250-GISEL-NEXT: flat_store_b96 v[4:5], v[0:2]
|
|
; GFX1250-GISEL-NEXT: s_wait_dscnt 0x0
|
|
; GFX1250-GISEL-NEXT: s_set_pc_i64 s[30:31]
|
|
%ret = tail call <3 x i32> @llvm.amdgcn.perm.pk16.b6.u4(i32 %a, i64 %b, <2 x i32> %c)
|
|
store <3 x i32> %ret, ptr %out, align 16
|
|
ret void
|
|
}
|
|
|
|
define void @test_perm_pk16_b8_u4(i64 %a, i64 %b, <2 x i32> %c, ptr %out) {
|
|
; GFX1250-LABEL: test_perm_pk16_b8_u4:
|
|
; GFX1250: ; %bb.0:
|
|
; GFX1250-NEXT: s_wait_loadcnt_dscnt 0x0
|
|
; GFX1250-NEXT: s_wait_kmcnt 0x0
|
|
; GFX1250-NEXT: v_perm_pk16_b8_u4 v[0:3], v[0:1], v[2:3], v[4:5]
|
|
; GFX1250-NEXT: flat_store_b128 v[6:7], v[0:3]
|
|
; GFX1250-NEXT: s_wait_dscnt 0x0
|
|
; GFX1250-NEXT: s_set_pc_i64 s[30:31]
|
|
%ret = tail call <4 x i32> @llvm.amdgcn.perm.pk16.b8.u4(i64 %a, i64 %b, <2 x i32> %c)
|
|
store <4 x i32> %ret, ptr %out, align 16
|
|
ret void
|
|
}
|
|
|
|
define amdgpu_ps <2 x i32> @test_perm_pk16_b4_u4_sss(i32 inreg %a, i32 inreg %b, <2 x i32> inreg %c) {
|
|
; GFX1250-SDAG-LABEL: test_perm_pk16_b4_u4_sss:
|
|
; GFX1250-SDAG: ; %bb.0:
|
|
; GFX1250-SDAG-NEXT: global_prefetch_b8 v0, s[0:1] scope:SCOPE_SE
|
|
; GFX1250-SDAG-NEXT: v_nop
|
|
; GFX1250-SDAG-NEXT: s_setreg_imm32_b32 hwreg(HW_REG_WAVE_MODE, 25, 1), 1 ; msbs: dst=0 src0=0 src1=0 src2=0
|
|
; GFX1250-SDAG-NEXT: v_dual_mov_b32 v0, s2 :: v_dual_mov_b32 v1, s3
|
|
; GFX1250-SDAG-NEXT: s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
|
|
; GFX1250-SDAG-NEXT: v_perm_pk16_b4_u4 v[0:1], s0, s1, v[0:1]
|
|
; GFX1250-SDAG-NEXT: v_readfirstlane_b32 s0, v0
|
|
; GFX1250-SDAG-NEXT: s_delay_alu instid0(VALU_DEP_2)
|
|
; GFX1250-SDAG-NEXT: v_readfirstlane_b32 s1, v1
|
|
; GFX1250-SDAG-NEXT: ; return to shader part epilog
|
|
;
|
|
; GFX1250-GISEL-LABEL: test_perm_pk16_b4_u4_sss:
|
|
; GFX1250-GISEL: ; %bb.0:
|
|
; GFX1250-GISEL-NEXT: global_prefetch_b8 v0, s[0:1] scope:SCOPE_SE
|
|
; GFX1250-GISEL-NEXT: v_nop
|
|
; GFX1250-GISEL-NEXT: s_setreg_imm32_b32 hwreg(HW_REG_WAVE_MODE, 25, 1), 1 ; msbs: dst=0 src0=0 src1=0 src2=0
|
|
; GFX1250-GISEL-NEXT: v_mov_b64_e32 v[0:1], s[2:3]
|
|
; GFX1250-GISEL-NEXT: s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
|
|
; GFX1250-GISEL-NEXT: v_perm_pk16_b4_u4 v[0:1], s0, s1, v[0:1]
|
|
; GFX1250-GISEL-NEXT: v_readfirstlane_b32 s0, v0
|
|
; GFX1250-GISEL-NEXT: s_delay_alu instid0(VALU_DEP_2)
|
|
; GFX1250-GISEL-NEXT: v_readfirstlane_b32 s1, v1
|
|
; GFX1250-GISEL-NEXT: ; return to shader part epilog
|
|
%ret = tail call <2 x i32> @llvm.amdgcn.perm.pk16.b4.u4(i32 %a, i32 %b, <2 x i32> %c)
|
|
ret <2 x i32> %ret
|
|
}
|
|
|
|
define amdgpu_ps <3 x i32> @test_perm_pk16_b6_u4_sss(i32 inreg %a, i64 inreg %b, <2 x i32> inreg %c) {
|
|
; GFX1250-SDAG-LABEL: test_perm_pk16_b6_u4_sss:
|
|
; GFX1250-SDAG: ; %bb.0:
|
|
; GFX1250-SDAG-NEXT: global_prefetch_b8 v0, s[0:1] scope:SCOPE_SE
|
|
; GFX1250-SDAG-NEXT: v_nop
|
|
; GFX1250-SDAG-NEXT: s_setreg_imm32_b32 hwreg(HW_REG_WAVE_MODE, 25, 1), 1 ; msbs: dst=0 src0=0 src1=0 src2=0
|
|
; GFX1250-SDAG-NEXT: v_dual_mov_b32 v0, s3 :: v_dual_mov_b32 v1, s4
|
|
; GFX1250-SDAG-NEXT: s_mov_b32 s7, s2
|
|
; GFX1250-SDAG-NEXT: s_mov_b32 s6, s1
|
|
; GFX1250-SDAG-NEXT: s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
|
|
; GFX1250-SDAG-NEXT: v_perm_pk16_b6_u4 v[0:2], s0, s[6:7], v[0:1]
|
|
; GFX1250-SDAG-NEXT: s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
|
|
; GFX1250-SDAG-NEXT: v_readfirstlane_b32 s0, v0
|
|
; GFX1250-SDAG-NEXT: v_readfirstlane_b32 s1, v1
|
|
; GFX1250-SDAG-NEXT: s_delay_alu instid0(VALU_DEP_3)
|
|
; GFX1250-SDAG-NEXT: v_readfirstlane_b32 s2, v2
|
|
; GFX1250-SDAG-NEXT: ; return to shader part epilog
|
|
;
|
|
; GFX1250-GISEL-LABEL: test_perm_pk16_b6_u4_sss:
|
|
; GFX1250-GISEL: ; %bb.0:
|
|
; GFX1250-GISEL-NEXT: global_prefetch_b8 v0, s[0:1] scope:SCOPE_SE
|
|
; GFX1250-GISEL-NEXT: v_nop
|
|
; GFX1250-GISEL-NEXT: s_setreg_imm32_b32 hwreg(HW_REG_WAVE_MODE, 25, 1), 1 ; msbs: dst=0 src0=0 src1=0 src2=0
|
|
; GFX1250-GISEL-NEXT: s_mov_b32 s6, s3
|
|
; GFX1250-GISEL-NEXT: s_mov_b32 s7, s4
|
|
; GFX1250-GISEL-NEXT: s_mov_b32 s4, s1
|
|
; GFX1250-GISEL-NEXT: v_mov_b64_e32 v[0:1], s[6:7]
|
|
; GFX1250-GISEL-NEXT: s_mov_b32 s5, s2
|
|
; GFX1250-GISEL-NEXT: s_delay_alu instid0(VALU_DEP_1) | instid1(SALU_CYCLE_1)
|
|
; GFX1250-GISEL-NEXT: v_perm_pk16_b6_u4 v[0:2], s0, s[4:5], v[0:1]
|
|
; GFX1250-GISEL-NEXT: s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_2)
|
|
; GFX1250-GISEL-NEXT: v_readfirstlane_b32 s0, v0
|
|
; GFX1250-GISEL-NEXT: v_readfirstlane_b32 s1, v1
|
|
; GFX1250-GISEL-NEXT: s_delay_alu instid0(VALU_DEP_3)
|
|
; GFX1250-GISEL-NEXT: v_readfirstlane_b32 s2, v2
|
|
; GFX1250-GISEL-NEXT: ; return to shader part epilog
|
|
%ret = tail call <3 x i32> @llvm.amdgcn.perm.pk16.b6.u4(i32 %a, i64 %b, <2 x i32> %c)
|
|
ret <3 x i32> %ret
|
|
}
|
|
|
|
define amdgpu_ps <4 x i32> @test_perm_pk16_b8_u4_sss(i64 inreg %a, i64 inreg %b, <2 x i32> inreg %c) {
|
|
; GFX1250-SDAG-LABEL: test_perm_pk16_b8_u4_sss:
|
|
; GFX1250-SDAG: ; %bb.0:
|
|
; GFX1250-SDAG-NEXT: global_prefetch_b8 v0, s[0:1] scope:SCOPE_SE
|
|
; GFX1250-SDAG-NEXT: v_nop
|
|
; GFX1250-SDAG-NEXT: s_setreg_imm32_b32 hwreg(HW_REG_WAVE_MODE, 25, 1), 1 ; msbs: dst=0 src0=0 src1=0 src2=0
|
|
; GFX1250-SDAG-NEXT: v_dual_mov_b32 v0, s4 :: v_dual_mov_b32 v1, s5
|
|
; GFX1250-SDAG-NEXT: s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
|
|
; GFX1250-SDAG-NEXT: v_perm_pk16_b8_u4 v[0:3], s[0:1], s[2:3], v[0:1]
|
|
; GFX1250-SDAG-NEXT: v_readfirstlane_b32 s0, v0
|
|
; GFX1250-SDAG-NEXT: s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
|
|
; GFX1250-SDAG-NEXT: v_readfirstlane_b32 s1, v1
|
|
; GFX1250-SDAG-NEXT: v_readfirstlane_b32 s2, v2
|
|
; GFX1250-SDAG-NEXT: s_delay_alu instid0(VALU_DEP_4)
|
|
; GFX1250-SDAG-NEXT: v_readfirstlane_b32 s3, v3
|
|
; GFX1250-SDAG-NEXT: ; return to shader part epilog
|
|
;
|
|
; GFX1250-GISEL-LABEL: test_perm_pk16_b8_u4_sss:
|
|
; GFX1250-GISEL: ; %bb.0:
|
|
; GFX1250-GISEL-NEXT: global_prefetch_b8 v0, s[0:1] scope:SCOPE_SE
|
|
; GFX1250-GISEL-NEXT: v_nop
|
|
; GFX1250-GISEL-NEXT: s_setreg_imm32_b32 hwreg(HW_REG_WAVE_MODE, 25, 1), 1 ; msbs: dst=0 src0=0 src1=0 src2=0
|
|
; GFX1250-GISEL-NEXT: v_mov_b64_e32 v[0:1], s[4:5]
|
|
; GFX1250-GISEL-NEXT: s_delay_alu instid0(VALU_DEP_1) | instskip(NEXT) | instid1(VALU_DEP_1)
|
|
; GFX1250-GISEL-NEXT: v_perm_pk16_b8_u4 v[0:3], s[0:1], s[2:3], v[0:1]
|
|
; GFX1250-GISEL-NEXT: v_readfirstlane_b32 s0, v0
|
|
; GFX1250-GISEL-NEXT: s_delay_alu instid0(VALU_DEP_2) | instskip(NEXT) | instid1(VALU_DEP_3)
|
|
; GFX1250-GISEL-NEXT: v_readfirstlane_b32 s1, v1
|
|
; GFX1250-GISEL-NEXT: v_readfirstlane_b32 s2, v2
|
|
; GFX1250-GISEL-NEXT: s_delay_alu instid0(VALU_DEP_4)
|
|
; GFX1250-GISEL-NEXT: v_readfirstlane_b32 s3, v3
|
|
; GFX1250-GISEL-NEXT: ; return to shader part epilog
|
|
%ret = tail call <4 x i32> @llvm.amdgcn.perm.pk16.b8.u4(i64 %a, i64 %b, <2 x i32> %c)
|
|
ret <4 x i32> %ret
|
|
}
|