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
79 lines
3.7 KiB
Common Lisp
79 lines
3.7 KiB
Common Lisp
// NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py
|
|
// REQUIRES: amdgpu-registered-target
|
|
// RUN: %clang_cc1 -cl-std=CL2.0 -triple amdgcn-unknown-unknown -target-cpu gfx1250 -emit-llvm -o - %s | FileCheck %s --check-prefix=CHECK-GFX1250
|
|
|
|
typedef int v4i __attribute__((ext_vector_type(4)));
|
|
typedef int v8i __attribute__((ext_vector_type(8)));
|
|
|
|
typedef unsigned int v4u __attribute__((ext_vector_type(4)));
|
|
|
|
static v4i v4i_zeros = (v4i){0,0,0,0};
|
|
static v8i v8i_zeros = (v8i){0,0,0,0,0,0,0,0};
|
|
|
|
// CHECK-GFX1250-LABEL: @test_amdgcn_tensor_load_to_lds_d4(
|
|
// CHECK-GFX1250-NEXT: entry:
|
|
// CHECK-GFX1250-NEXT: tail call void @llvm.amdgcn.tensor.load.to.lds(<4 x i32> [[SG0:%.*]], <8 x i32> [[SG1:%.*]], <4 x i32> [[SG2:%.*]], <4 x i32> [[SG3:%.*]], <8 x i32> zeroinitializer, i32 0)
|
|
// CHECK-GFX1250-NEXT: ret void
|
|
//
|
|
void test_amdgcn_tensor_load_to_lds_d4(v4u sg0, v8i sg1, v4i sg2, v4i sg3)
|
|
{
|
|
__builtin_amdgcn_tensor_load_to_lds(sg0, sg1, sg2, sg3, v8i_zeros, 0);
|
|
}
|
|
|
|
// CHECK-GFX1250-LABEL: @test_amdgcn_tensor_load_to_lds_d2(
|
|
// CHECK-GFX1250-NEXT: entry:
|
|
// CHECK-GFX1250-NEXT: tail call void @llvm.amdgcn.tensor.load.to.lds(<4 x i32> [[SG0:%.*]], <8 x i32> [[SG1:%.*]], <4 x i32> zeroinitializer, <4 x i32> zeroinitializer, <8 x i32> zeroinitializer, i32 27)
|
|
// CHECK-GFX1250-NEXT: ret void
|
|
//
|
|
void test_amdgcn_tensor_load_to_lds_d2(v4u sg0, v8i sg1)
|
|
{
|
|
__builtin_amdgcn_tensor_load_to_lds(sg0, sg1, v4i_zeros, v4i_zeros, v8i_zeros, 27);
|
|
}
|
|
|
|
// CHECK-GFX1250-LABEL: @test_amdgcn_tensor_store_from_lds_d4(
|
|
// CHECK-GFX1250-NEXT: entry:
|
|
// CHECK-GFX1250-NEXT: tail call void @llvm.amdgcn.tensor.store.from.lds(<4 x i32> [[SG0:%.*]], <8 x i32> [[SG1:%.*]], <4 x i32> [[SG2:%.*]], <4 x i32> [[SG3:%.*]], <8 x i32> zeroinitializer, i32 22)
|
|
// CHECK-GFX1250-NEXT: ret void
|
|
//
|
|
void test_amdgcn_tensor_store_from_lds_d4(v4u sg0, v8i sg1, v4i sg2, v4i sg3)
|
|
{
|
|
__builtin_amdgcn_tensor_store_from_lds(sg0, sg1, sg2, sg3, v8i_zeros, 22);
|
|
}
|
|
|
|
// CHECK-GFX1250-LABEL: @test_amdgcn_tensor_store_from_lds_d2(
|
|
// CHECK-GFX1250-NEXT: entry:
|
|
// CHECK-GFX1250-NEXT: tail call void @llvm.amdgcn.tensor.store.from.lds(<4 x i32> [[SG0:%.*]], <8 x i32> [[SG1:%.*]], <4 x i32> zeroinitializer, <4 x i32> zeroinitializer, <8 x i32> zeroinitializer, i32 0)
|
|
// CHECK-GFX1250-NEXT: ret void
|
|
//
|
|
void test_amdgcn_tensor_store_from_lds_d2(v4u sg0, v8i sg1)
|
|
{
|
|
__builtin_amdgcn_tensor_store_from_lds(sg0, sg1, v4i_zeros, v4i_zeros, v8i_zeros, 0);
|
|
}
|
|
|
|
//=======================================================================
|
|
// It is fine to pass 5 arguments as tensor descriptor, but the fifth one
|
|
// will be ignored by llvm CodeGen for gfx1250, which only supports D# up
|
|
// to 4 groups.
|
|
//========================================================================
|
|
|
|
|
|
// CHECK-GFX1250-LABEL: @test_amdgcn_tensor_load_to_lds_d5(
|
|
// CHECK-GFX1250-NEXT: entry:
|
|
// CHECK-GFX1250-NEXT: tail call void @llvm.amdgcn.tensor.load.to.lds(<4 x i32> [[SG0:%.*]], <8 x i32> [[SG1:%.*]], <4 x i32> [[SG2:%.*]], <4 x i32> [[SG3:%.*]], <8 x i32> [[SG4:%.*]], i32 0)
|
|
// CHECK-GFX1250-NEXT: ret void
|
|
//
|
|
void test_amdgcn_tensor_load_to_lds_d5(v4u sg0, v8i sg1, v4i sg2, v4i sg3, v8i sg4)
|
|
{
|
|
__builtin_amdgcn_tensor_load_to_lds(sg0, sg1, sg2, sg3, sg4, 0);
|
|
}
|
|
|
|
// CHECK-GFX1250-LABEL: @test_amdgcn_tensor_store_from_lds_d5(
|
|
// CHECK-GFX1250-NEXT: entry:
|
|
// CHECK-GFX1250-NEXT: tail call void @llvm.amdgcn.tensor.store.from.lds(<4 x i32> [[SG0:%.*]], <8 x i32> [[SG1:%.*]], <4 x i32> [[SG2:%.*]], <4 x i32> [[SG3:%.*]], <8 x i32> [[SG4:%.*]], i32 0)
|
|
// CHECK-GFX1250-NEXT: ret void
|
|
//
|
|
void test_amdgcn_tensor_store_from_lds_d5(v4u sg0, v8i sg1, v4i sg2, v4i sg3, v8i sg4)
|
|
{
|
|
__builtin_amdgcn_tensor_store_from_lds(sg0, sg1, sg2, sg3, sg4, 0);
|
|
}
|