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
60 lines
2.6 KiB
LLVM
60 lines
2.6 KiB
LLVM
; RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx908 -o - < %s | FileCheck --check-prefixes=GCN,GFX908 %s
|
|
; RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx90a -o - < %s | FileCheck --check-prefixes=GCN,GFX90A %s
|
|
; RUN: llc -global-isel -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx908 -o - < %s | FileCheck --check-prefixes=GCN,GFX908 %s
|
|
; RUN: llc -global-isel -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx90a -o - < %s | FileCheck --check-prefixes=GCN,GFX90A %s
|
|
; RUN: llc -mtriple=amdgcn-mesa-mesa3d -mcpu=gfx908 -early-live-intervals -o - < %s | FileCheck --check-prefixes=GCN,GFX908 %s
|
|
|
|
; GCN-LABEL: {{^}}gws_init_odd_reg:
|
|
; GFX908-DAG: ds_gws_init v1 gds
|
|
; GFX90A-DAG: ds_gws_init v2 gds
|
|
; GCN-DAG: ds_gws_init v0 gds
|
|
define amdgpu_ps void @gws_init_odd_reg(<2 x i32> %arg) {
|
|
%vgpr.0 = extractelement <2 x i32> %arg, i32 0
|
|
%vgpr.1 = extractelement <2 x i32> %arg, i32 1
|
|
call void @llvm.amdgcn.ds.gws.init(i32 %vgpr.0, i32 0)
|
|
call void @llvm.amdgcn.ds.gws.init(i32 %vgpr.1, i32 0)
|
|
ret void
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}gws_sema_br_odd_reg:
|
|
; GFX908-DAG: ds_gws_sema_br v1 gds
|
|
; GFX90A-DAG: ds_gws_sema_br v2 gds
|
|
; GCN-DAG: ds_gws_sema_br v0 gds
|
|
define amdgpu_ps void @gws_sema_br_odd_reg(<2 x i32> %arg) {
|
|
%vgpr.0 = extractelement <2 x i32> %arg, i32 0
|
|
%vgpr.1 = extractelement <2 x i32> %arg, i32 1
|
|
call void @llvm.amdgcn.ds.gws.sema.br(i32 %vgpr.0, i32 0)
|
|
call void @llvm.amdgcn.ds.gws.sema.br(i32 %vgpr.1, i32 0)
|
|
ret void
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}gws_barrier_odd_reg:
|
|
; GFX908-DAG: ds_gws_barrier v1 gds
|
|
; GFX90A-DAG: ds_gws_barrier v2 gds
|
|
; GCN-DAG: ds_gws_barrier v0 gds
|
|
define amdgpu_ps void @gws_barrier_odd_reg(<2 x i32> %arg) {
|
|
%vgpr.0 = extractelement <2 x i32> %arg, i32 0
|
|
%vgpr.1 = extractelement <2 x i32> %arg, i32 1
|
|
call void @llvm.amdgcn.ds.gws.barrier(i32 %vgpr.0, i32 0)
|
|
call void @llvm.amdgcn.ds.gws.barrier(i32 %vgpr.1, i32 0)
|
|
ret void
|
|
}
|
|
|
|
; GCN-LABEL: {{^}}gws_init_odd_agpr:
|
|
; GFX908-COUNT-2: ds_gws_init v{{[0-9]+}} gds
|
|
; GFX90A-COUNT-2: ds_gws_init {{[va][0-9]?[02468]}} gds
|
|
define amdgpu_ps void @gws_init_odd_agpr(<4 x i32> %arg) {
|
|
bb:
|
|
%mai = tail call <4 x i32> @llvm.amdgcn.mfma.i32.4x4x4i8(i32 1, i32 2, <4 x i32> %arg, i32 0, i32 0, i32 0)
|
|
%agpr.0 = extractelement <4 x i32> %mai, i32 0
|
|
%agpr.1 = extractelement <4 x i32> %mai, i32 1
|
|
call void @llvm.amdgcn.ds.gws.init(i32 %agpr.0, i32 0)
|
|
call void @llvm.amdgcn.ds.gws.init(i32 %agpr.1, i32 0)
|
|
ret void
|
|
}
|
|
|
|
declare void @llvm.amdgcn.ds.gws.init(i32, i32)
|
|
declare void @llvm.amdgcn.ds.gws.sema.br(i32, i32)
|
|
declare void @llvm.amdgcn.ds.gws.barrier(i32, i32)
|
|
declare <4 x i32> @llvm.amdgcn.mfma.i32.4x4x4i8(i32, i32, <4 x i32>, i32, i32, i32)
|