Debian Codegraph @

clang/test/CodeGen/RISCV/rvv-intrinsics-sifive/non-policy/overloaded/sf_mm_f_f.c

raw
1 // NOTE: Assertions have been autogenerated by utils/update_cc_test_checks.py UTC_ARGS: --version 4
2 // REQUIRES: riscv-registered-target
3 // RUN: %clang_cc1 -triple riscv64 -target-feature +xsfmm32a16f \
4 // RUN: -target-feature +xsfmm32a32f -target-feature +xsfmm64a64f \
5 // RUN: -target-feature +zvfhmin -target-feature +zve64d -disable-O0-optnone \
6 // RUN: -emit-llvm %s -o - | \
7 // RUN: opt -S -passes=mem2reg | FileCheck --check-prefix=CHECK-RV64 %s
8
9 #include <sifive_vector.h>
10
11 // CHECK-RV64-LABEL: define dso_local void @test_sf_mm_f_f_w2_f16m8(
12 // CHECK-RV64-SAME: <vscale x 32 x half> [[VS2:%.*]], <vscale x 32 x half> [[VS1:%.*]], i64 noundef [[TM:%.*]], i64 noundef [[TN:%.*]], i64 noundef [[TK:%.*]]) #[[ATTR0:[0-9]+]] {
13 // CHECK-RV64-NEXT: entry:
14 // CHECK-RV64-NEXT: call void @llvm.riscv.sf.mm.f.f.i64.nxv32f16(i64 0, <vscale x 32 x half> [[VS2]], <vscale x 32 x half> [[VS1]], i64 [[TM]], i64 [[TN]], i64 [[TK]], i64 2)
15 // CHECK-RV64-NEXT: ret void
16 //
17 void test_sf_mm_f_f_w2_f16m8(vfloat16m8_t vs2, vfloat16m8_t vs1, size_t tm, size_t tn, size_t tk) {
18 return __riscv_sf_mm_f_f_w2(0, vs2, vs1, tm, tn, tk);
19 }
20
21 // CHECK-RV64-LABEL: define dso_local void @test_sf_mm_f_f_w1_f32m8(
22 // CHECK-RV64-SAME: <vscale x 16 x float> [[VS2:%.*]], <vscale x 16 x float> [[VS1:%.*]], i64 noundef [[TM:%.*]], i64 noundef [[TN:%.*]], i64 noundef [[TK:%.*]]) #[[ATTR0]] {
23 // CHECK-RV64-NEXT: entry:
24 // CHECK-RV64-NEXT: call void @llvm.riscv.sf.mm.f.f.i64.nxv16f32(i64 0, <vscale x 16 x float> [[VS2]], <vscale x 16 x float> [[VS1]], i64 [[TM]], i64 [[TN]], i64 [[TK]], i64 1)
25 // CHECK-RV64-NEXT: ret void
26 //
27 void test_sf_mm_f_f_w1_f32m8(vfloat32m8_t vs2, vfloat32m8_t vs1, size_t tm, size_t tn, size_t tk) {
28 return __riscv_sf_mm_f_f_w1(0, vs2, vs1, tm, tn, tk);
29 }
30
31 // CHECK-RV64-LABEL: define dso_local void @test_sf_mm_f_f_w1_f64m8(
32 // CHECK-RV64-SAME: <vscale x 8 x double> [[VS2:%.*]], <vscale x 8 x double> [[VS1:%.*]], i64 noundef [[TM:%.*]], i64 noundef [[TN:%.*]], i64 noundef [[TK:%.*]]) #[[ATTR0]] {
33 // CHECK-RV64-NEXT: entry:
34 // CHECK-RV64-NEXT: call void @llvm.riscv.sf.mm.f.f.i64.nxv8f64(i64 0, <vscale x 8 x double> [[VS2]], <vscale x 8 x double> [[VS1]], i64 [[TM]], i64 [[TN]], i64 [[TK]], i64 1)
35 // CHECK-RV64-NEXT: ret void
36 //
37 void test_sf_mm_f_f_w1_f64m8(vfloat64m8_t vs2, vfloat64m8_t vs1, size_t tm, size_t tn, size_t tk) {
38 return __riscv_sf_mm_f_f_w1(0, vs2, vs1, tm, tn, tk);
39 }
40