Files
TheRock/compiler/amd-llvm/llvm/test/CodeGen/RISCV/rvv/combine-vl-vw-macc.ll
T
derek.holloway 7502bf64a4
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
Flatten subprojects into a single base monorepo
2026-09-02 16:34:47 -07:00

55 lines
2.1 KiB
LLVM

; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 6
; RUN: llc -mtriple=riscv32 -mattr=+v -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV32
; RUN: llc -mtriple=riscv64 -mattr=+v -verify-machineinstrs < %s | FileCheck %s --check-prefixes=CHECK,RV64
define void @matmul_min(ptr %vptr, ptr %scalars, ptr %acc0_ptr, ptr %acc1_ptr) {
; CHECK-LABEL: matmul_min:
; CHECK: # %bb.0: # %entry
; CHECK-NEXT: li a4, 64
; CHECK-NEXT: li a5, 32
; CHECK-NEXT: vsetvli zero, a5, e8, m2, ta, ma
; CHECK-NEXT: vle8.v v16, (a0)
; CHECK-NEXT: lb a0, 0(a1)
; CHECK-NEXT: lb a1, 1(a1)
; CHECK-NEXT: vsetvli zero, a4, e8, m4, ta, ma
; CHECK-NEXT: vle8.v v8, (a2)
; CHECK-NEXT: vle8.v v12, (a3)
; CHECK-NEXT: vsetvli zero, a5, e8, m2, ta, ma
; CHECK-NEXT: vwmacc.vx v8, a0, v16
; CHECK-NEXT: vwmacc.vx v12, a1, v16
; CHECK-NEXT: vsetvli zero, a4, e8, m4, ta, ma
; CHECK-NEXT: vse8.v v8, (a2)
; CHECK-NEXT: vse8.v v12, (a3)
; CHECK-NEXT: ret
entry:
%acc0 = load <32 x i16>, ptr %acc0_ptr, align 1
%acc1 = load <32 x i16>, ptr %acc1_ptr, align 1
%v8 = load <32 x i8>, ptr %vptr, align 1
%v16 = sext <32 x i8> %v8 to <32 x i16>
%s0_ptr = getelementptr i8, ptr %scalars, i32 0
%s0_i8 = load i8, ptr %s0_ptr, align 1
%s0_i16 = sext i8 %s0_i8 to i16
%tmp0 = insertelement <32 x i16> poison, i16 %s0_i16, i32 0
%splat0 = shufflevector <32 x i16> %tmp0, <32 x i16> poison, <32 x i32> zeroinitializer
%mul0 = mul <32 x i16> %splat0, %v16
%add0 = add <32 x i16> %mul0, %acc0
%s1_ptr = getelementptr i8, ptr %scalars, i32 1
%s1_i8 = load i8, ptr %s1_ptr, align 1
%s1_i16 = sext i8 %s1_i8 to i16
%tmp1 = insertelement <32 x i16> poison, i16 %s1_i16, i32 0
%splat1 = shufflevector <32 x i16> %tmp1, <32 x i16> poison, <32 x i32> zeroinitializer
%mul1 = mul <32 x i16> %splat1, %v16
%add1 = add <32 x i16> %mul1, %acc1
store <32 x i16> %add0, ptr %acc0_ptr, align 1
store <32 x i16> %add1, ptr %acc1_ptr, align 1
ret void
}
;; NOTE: These prefixes are unused and the list is autogenerated. Do not add tests below this line:
; RV32: {{.*}}
; RV64: {{.*}}