Skip to content

Commit 36723fb

Browse files
committed
[Auto-gen] Update bfloat16 tests under ../auto-generated. (make git-commit-autogen-bf16-test)
1 parent 1c4f9c6 commit 36723fb

40 files changed

+4496
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#include <riscv_vector.h>
2+
#include <stdint.h>
3+
4+
vbfloat16mf4_t test_vcompress_vm_bf16mf4(vbfloat16mf4_t vs2, vbool64_t vs1,
5+
size_t vl) {
6+
return __riscv_vcompress_vm_bf16mf4(vs2, vs1, vl);
7+
}
8+
9+
vbfloat16mf2_t test_vcompress_vm_bf16mf2(vbfloat16mf2_t vs2, vbool32_t vs1,
10+
size_t vl) {
11+
return __riscv_vcompress_vm_bf16mf2(vs2, vs1, vl);
12+
}
13+
14+
vbfloat16m1_t test_vcompress_vm_bf16m1(vbfloat16m1_t vs2, vbool16_t vs1,
15+
size_t vl) {
16+
return __riscv_vcompress_vm_bf16m1(vs2, vs1, vl);
17+
}
18+
19+
vbfloat16m2_t test_vcompress_vm_bf16m2(vbfloat16m2_t vs2, vbool8_t vs1,
20+
size_t vl) {
21+
return __riscv_vcompress_vm_bf16m2(vs2, vs1, vl);
22+
}
23+
24+
vbfloat16m4_t test_vcompress_vm_bf16m4(vbfloat16m4_t vs2, vbool4_t vs1,
25+
size_t vl) {
26+
return __riscv_vcompress_vm_bf16m4(vs2, vs1, vl);
27+
}
28+
29+
vbfloat16m8_t test_vcompress_vm_bf16m8(vbfloat16m8_t vs2, vbool2_t vs1,
30+
size_t vl) {
31+
return __riscv_vcompress_vm_bf16m8(vs2, vs1, vl);
32+
}
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
#include <riscv_vector.h>
2+
#include <stdint.h>
3+
4+
vbfloat16mf4_t test_vrgather_vv_bf16mf4(vbfloat16mf4_t vs2, vuint16mf4_t vs1,
5+
size_t vl) {
6+
return __riscv_vrgather_vv_bf16mf4(vs2, vs1, vl);
7+
}
8+
9+
vbfloat16mf4_t test_vrgather_vx_bf16mf4(vbfloat16mf4_t vs2, size_t vs1,
10+
size_t vl) {
11+
return __riscv_vrgather_vx_bf16mf4(vs2, vs1, vl);
12+
}
13+
14+
vbfloat16mf2_t test_vrgather_vv_bf16mf2(vbfloat16mf2_t vs2, vuint16mf2_t vs1,
15+
size_t vl) {
16+
return __riscv_vrgather_vv_bf16mf2(vs2, vs1, vl);
17+
}
18+
19+
vbfloat16mf2_t test_vrgather_vx_bf16mf2(vbfloat16mf2_t vs2, size_t vs1,
20+
size_t vl) {
21+
return __riscv_vrgather_vx_bf16mf2(vs2, vs1, vl);
22+
}
23+
24+
vbfloat16m1_t test_vrgather_vv_bf16m1(vbfloat16m1_t vs2, vuint16m1_t vs1,
25+
size_t vl) {
26+
return __riscv_vrgather_vv_bf16m1(vs2, vs1, vl);
27+
}
28+
29+
vbfloat16m1_t test_vrgather_vx_bf16m1(vbfloat16m1_t vs2, size_t vs1,
30+
size_t vl) {
31+
return __riscv_vrgather_vx_bf16m1(vs2, vs1, vl);
32+
}
33+
34+
vbfloat16m2_t test_vrgather_vv_bf16m2(vbfloat16m2_t vs2, vuint16m2_t vs1,
35+
size_t vl) {
36+
return __riscv_vrgather_vv_bf16m2(vs2, vs1, vl);
37+
}
38+
39+
vbfloat16m2_t test_vrgather_vx_bf16m2(vbfloat16m2_t vs2, size_t vs1,
40+
size_t vl) {
41+
return __riscv_vrgather_vx_bf16m2(vs2, vs1, vl);
42+
}
43+
44+
vbfloat16m4_t test_vrgather_vv_bf16m4(vbfloat16m4_t vs2, vuint16m4_t vs1,
45+
size_t vl) {
46+
return __riscv_vrgather_vv_bf16m4(vs2, vs1, vl);
47+
}
48+
49+
vbfloat16m4_t test_vrgather_vx_bf16m4(vbfloat16m4_t vs2, size_t vs1,
50+
size_t vl) {
51+
return __riscv_vrgather_vx_bf16m4(vs2, vs1, vl);
52+
}
53+
54+
vbfloat16m8_t test_vrgather_vv_bf16m8(vbfloat16m8_t vs2, vuint16m8_t vs1,
55+
size_t vl) {
56+
return __riscv_vrgather_vv_bf16m8(vs2, vs1, vl);
57+
}
58+
59+
vbfloat16m8_t test_vrgather_vx_bf16m8(vbfloat16m8_t vs2, size_t vs1,
60+
size_t vl) {
61+
return __riscv_vrgather_vx_bf16m8(vs2, vs1, vl);
62+
}
63+
64+
vbfloat16mf4_t test_vrgather_vv_bf16mf4_m(vbool64_t vm, vbfloat16mf4_t vs2,
65+
vuint16mf4_t vs1, size_t vl) {
66+
return __riscv_vrgather_vv_bf16mf4_m(vm, vs2, vs1, vl);
67+
}
68+
69+
vbfloat16mf4_t test_vrgather_vx_bf16mf4_m(vbool64_t vm, vbfloat16mf4_t vs2,
70+
size_t vs1, size_t vl) {
71+
return __riscv_vrgather_vx_bf16mf4_m(vm, vs2, vs1, vl);
72+
}
73+
74+
vbfloat16mf2_t test_vrgather_vv_bf16mf2_m(vbool32_t vm, vbfloat16mf2_t vs2,
75+
vuint16mf2_t vs1, size_t vl) {
76+
return __riscv_vrgather_vv_bf16mf2_m(vm, vs2, vs1, vl);
77+
}
78+
79+
vbfloat16mf2_t test_vrgather_vx_bf16mf2_m(vbool32_t vm, vbfloat16mf2_t vs2,
80+
size_t vs1, size_t vl) {
81+
return __riscv_vrgather_vx_bf16mf2_m(vm, vs2, vs1, vl);
82+
}
83+
84+
vbfloat16m1_t test_vrgather_vv_bf16m1_m(vbool16_t vm, vbfloat16m1_t vs2,
85+
vuint16m1_t vs1, size_t vl) {
86+
return __riscv_vrgather_vv_bf16m1_m(vm, vs2, vs1, vl);
87+
}
88+
89+
vbfloat16m1_t test_vrgather_vx_bf16m1_m(vbool16_t vm, vbfloat16m1_t vs2,
90+
size_t vs1, size_t vl) {
91+
return __riscv_vrgather_vx_bf16m1_m(vm, vs2, vs1, vl);
92+
}
93+
94+
vbfloat16m2_t test_vrgather_vv_bf16m2_m(vbool8_t vm, vbfloat16m2_t vs2,
95+
vuint16m2_t vs1, size_t vl) {
96+
return __riscv_vrgather_vv_bf16m2_m(vm, vs2, vs1, vl);
97+
}
98+
99+
vbfloat16m2_t test_vrgather_vx_bf16m2_m(vbool8_t vm, vbfloat16m2_t vs2,
100+
size_t vs1, size_t vl) {
101+
return __riscv_vrgather_vx_bf16m2_m(vm, vs2, vs1, vl);
102+
}
103+
104+
vbfloat16m4_t test_vrgather_vv_bf16m4_m(vbool4_t vm, vbfloat16m4_t vs2,
105+
vuint16m4_t vs1, size_t vl) {
106+
return __riscv_vrgather_vv_bf16m4_m(vm, vs2, vs1, vl);
107+
}
108+
109+
vbfloat16m4_t test_vrgather_vx_bf16m4_m(vbool4_t vm, vbfloat16m4_t vs2,
110+
size_t vs1, size_t vl) {
111+
return __riscv_vrgather_vx_bf16m4_m(vm, vs2, vs1, vl);
112+
}
113+
114+
vbfloat16m8_t test_vrgather_vv_bf16m8_m(vbool2_t vm, vbfloat16m8_t vs2,
115+
vuint16m8_t vs1, size_t vl) {
116+
return __riscv_vrgather_vv_bf16m8_m(vm, vs2, vs1, vl);
117+
}
118+
119+
vbfloat16m8_t test_vrgather_vx_bf16m8_m(vbool2_t vm, vbfloat16m8_t vs2,
120+
size_t vs1, size_t vl) {
121+
return __riscv_vrgather_vx_bf16m8_m(vm, vs2, vs1, vl);
122+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#include <riscv_vector.h>
2+
#include <stdint.h>
3+
4+
vbfloat16mf4_t test_vrgatherei16_vv_bf16mf4(vbfloat16mf4_t vs2,
5+
vuint16mf4_t vs1, size_t vl) {
6+
return __riscv_vrgatherei16_vv_bf16mf4(vs2, vs1, vl);
7+
}
8+
9+
vbfloat16mf2_t test_vrgatherei16_vv_bf16mf2(vbfloat16mf2_t vs2,
10+
vuint16mf2_t vs1, size_t vl) {
11+
return __riscv_vrgatherei16_vv_bf16mf2(vs2, vs1, vl);
12+
}
13+
14+
vbfloat16m1_t test_vrgatherei16_vv_bf16m1(vbfloat16m1_t vs2, vuint16m1_t vs1,
15+
size_t vl) {
16+
return __riscv_vrgatherei16_vv_bf16m1(vs2, vs1, vl);
17+
}
18+
19+
vbfloat16m2_t test_vrgatherei16_vv_bf16m2(vbfloat16m2_t vs2, vuint16m2_t vs1,
20+
size_t vl) {
21+
return __riscv_vrgatherei16_vv_bf16m2(vs2, vs1, vl);
22+
}
23+
24+
vbfloat16m4_t test_vrgatherei16_vv_bf16m4(vbfloat16m4_t vs2, vuint16m4_t vs1,
25+
size_t vl) {
26+
return __riscv_vrgatherei16_vv_bf16m4(vs2, vs1, vl);
27+
}
28+
29+
vbfloat16m8_t test_vrgatherei16_vv_bf16m8(vbfloat16m8_t vs2, vuint16m8_t vs1,
30+
size_t vl) {
31+
return __riscv_vrgatherei16_vv_bf16m8(vs2, vs1, vl);
32+
}
33+
34+
vbfloat16mf4_t test_vrgatherei16_vv_bf16mf4_m(vbool64_t vm, vbfloat16mf4_t vs2,
35+
vuint16mf4_t vs1, size_t vl) {
36+
return __riscv_vrgatherei16_vv_bf16mf4_m(vm, vs2, vs1, vl);
37+
}
38+
39+
vbfloat16mf2_t test_vrgatherei16_vv_bf16mf2_m(vbool32_t vm, vbfloat16mf2_t vs2,
40+
vuint16mf2_t vs1, size_t vl) {
41+
return __riscv_vrgatherei16_vv_bf16mf2_m(vm, vs2, vs1, vl);
42+
}
43+
44+
vbfloat16m1_t test_vrgatherei16_vv_bf16m1_m(vbool16_t vm, vbfloat16m1_t vs2,
45+
vuint16m1_t vs1, size_t vl) {
46+
return __riscv_vrgatherei16_vv_bf16m1_m(vm, vs2, vs1, vl);
47+
}
48+
49+
vbfloat16m2_t test_vrgatherei16_vv_bf16m2_m(vbool8_t vm, vbfloat16m2_t vs2,
50+
vuint16m2_t vs1, size_t vl) {
51+
return __riscv_vrgatherei16_vv_bf16m2_m(vm, vs2, vs1, vl);
52+
}
53+
54+
vbfloat16m4_t test_vrgatherei16_vv_bf16m4_m(vbool4_t vm, vbfloat16m4_t vs2,
55+
vuint16m4_t vs1, size_t vl) {
56+
return __riscv_vrgatherei16_vv_bf16m4_m(vm, vs2, vs1, vl);
57+
}
58+
59+
vbfloat16m8_t test_vrgatherei16_vv_bf16m8_m(vbool2_t vm, vbfloat16m8_t vs2,
60+
vuint16m8_t vs1, size_t vl) {
61+
return __riscv_vrgatherei16_vv_bf16m8_m(vm, vs2, vs1, vl);
62+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
#include <riscv_vector.h>
2+
#include <stdint.h>
3+
4+
vbfloat16mf4_t test_vslidedown_vx_bf16mf4(vbfloat16mf4_t vs2, size_t rs1,
5+
size_t vl) {
6+
return __riscv_vslidedown_vx_bf16mf4(vs2, rs1, vl);
7+
}
8+
9+
vbfloat16mf2_t test_vslidedown_vx_bf16mf2(vbfloat16mf2_t vs2, size_t rs1,
10+
size_t vl) {
11+
return __riscv_vslidedown_vx_bf16mf2(vs2, rs1, vl);
12+
}
13+
14+
vbfloat16m1_t test_vslidedown_vx_bf16m1(vbfloat16m1_t vs2, size_t rs1,
15+
size_t vl) {
16+
return __riscv_vslidedown_vx_bf16m1(vs2, rs1, vl);
17+
}
18+
19+
vbfloat16m2_t test_vslidedown_vx_bf16m2(vbfloat16m2_t vs2, size_t rs1,
20+
size_t vl) {
21+
return __riscv_vslidedown_vx_bf16m2(vs2, rs1, vl);
22+
}
23+
24+
vbfloat16m4_t test_vslidedown_vx_bf16m4(vbfloat16m4_t vs2, size_t rs1,
25+
size_t vl) {
26+
return __riscv_vslidedown_vx_bf16m4(vs2, rs1, vl);
27+
}
28+
29+
vbfloat16m8_t test_vslidedown_vx_bf16m8(vbfloat16m8_t vs2, size_t rs1,
30+
size_t vl) {
31+
return __riscv_vslidedown_vx_bf16m8(vs2, rs1, vl);
32+
}
33+
34+
vbfloat16mf4_t test_vslidedown_vx_bf16mf4_m(vbool64_t vm, vbfloat16mf4_t vs2,
35+
size_t rs1, size_t vl) {
36+
return __riscv_vslidedown_vx_bf16mf4_m(vm, vs2, rs1, vl);
37+
}
38+
39+
vbfloat16mf2_t test_vslidedown_vx_bf16mf2_m(vbool32_t vm, vbfloat16mf2_t vs2,
40+
size_t rs1, size_t vl) {
41+
return __riscv_vslidedown_vx_bf16mf2_m(vm, vs2, rs1, vl);
42+
}
43+
44+
vbfloat16m1_t test_vslidedown_vx_bf16m1_m(vbool16_t vm, vbfloat16m1_t vs2,
45+
size_t rs1, size_t vl) {
46+
return __riscv_vslidedown_vx_bf16m1_m(vm, vs2, rs1, vl);
47+
}
48+
49+
vbfloat16m2_t test_vslidedown_vx_bf16m2_m(vbool8_t vm, vbfloat16m2_t vs2,
50+
size_t rs1, size_t vl) {
51+
return __riscv_vslidedown_vx_bf16m2_m(vm, vs2, rs1, vl);
52+
}
53+
54+
vbfloat16m4_t test_vslidedown_vx_bf16m4_m(vbool4_t vm, vbfloat16m4_t vs2,
55+
size_t rs1, size_t vl) {
56+
return __riscv_vslidedown_vx_bf16m4_m(vm, vs2, rs1, vl);
57+
}
58+
59+
vbfloat16m8_t test_vslidedown_vx_bf16m8_m(vbool2_t vm, vbfloat16m8_t vs2,
60+
size_t rs1, size_t vl) {
61+
return __riscv_vslidedown_vx_bf16m8_m(vm, vs2, rs1, vl);
62+
}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#include <riscv_vector.h>
2+
#include <stdint.h>
3+
4+
vbfloat16mf4_t test_vslideup_vx_bf16mf4(vbfloat16mf4_t vd, vbfloat16mf4_t vs2,
5+
size_t rs1, size_t vl) {
6+
return __riscv_vslideup_vx_bf16mf4(vd, vs2, rs1, vl);
7+
}
8+
9+
vbfloat16mf2_t test_vslideup_vx_bf16mf2(vbfloat16mf2_t vd, vbfloat16mf2_t vs2,
10+
size_t rs1, size_t vl) {
11+
return __riscv_vslideup_vx_bf16mf2(vd, vs2, rs1, vl);
12+
}
13+
14+
vbfloat16m1_t test_vslideup_vx_bf16m1(vbfloat16m1_t vd, vbfloat16m1_t vs2,
15+
size_t rs1, size_t vl) {
16+
return __riscv_vslideup_vx_bf16m1(vd, vs2, rs1, vl);
17+
}
18+
19+
vbfloat16m2_t test_vslideup_vx_bf16m2(vbfloat16m2_t vd, vbfloat16m2_t vs2,
20+
size_t rs1, size_t vl) {
21+
return __riscv_vslideup_vx_bf16m2(vd, vs2, rs1, vl);
22+
}
23+
24+
vbfloat16m4_t test_vslideup_vx_bf16m4(vbfloat16m4_t vd, vbfloat16m4_t vs2,
25+
size_t rs1, size_t vl) {
26+
return __riscv_vslideup_vx_bf16m4(vd, vs2, rs1, vl);
27+
}
28+
29+
vbfloat16m8_t test_vslideup_vx_bf16m8(vbfloat16m8_t vd, vbfloat16m8_t vs2,
30+
size_t rs1, size_t vl) {
31+
return __riscv_vslideup_vx_bf16m8(vd, vs2, rs1, vl);
32+
}
33+
34+
vbfloat16mf4_t test_vslideup_vx_bf16mf4_m(vbool64_t vm, vbfloat16mf4_t vd,
35+
vbfloat16mf4_t vs2, size_t rs1,
36+
size_t vl) {
37+
return __riscv_vslideup_vx_bf16mf4_m(vm, vd, vs2, rs1, vl);
38+
}
39+
40+
vbfloat16mf2_t test_vslideup_vx_bf16mf2_m(vbool32_t vm, vbfloat16mf2_t vd,
41+
vbfloat16mf2_t vs2, size_t rs1,
42+
size_t vl) {
43+
return __riscv_vslideup_vx_bf16mf2_m(vm, vd, vs2, rs1, vl);
44+
}
45+
46+
vbfloat16m1_t test_vslideup_vx_bf16m1_m(vbool16_t vm, vbfloat16m1_t vd,
47+
vbfloat16m1_t vs2, size_t rs1,
48+
size_t vl) {
49+
return __riscv_vslideup_vx_bf16m1_m(vm, vd, vs2, rs1, vl);
50+
}
51+
52+
vbfloat16m2_t test_vslideup_vx_bf16m2_m(vbool8_t vm, vbfloat16m2_t vd,
53+
vbfloat16m2_t vs2, size_t rs1,
54+
size_t vl) {
55+
return __riscv_vslideup_vx_bf16m2_m(vm, vd, vs2, rs1, vl);
56+
}
57+
58+
vbfloat16m4_t test_vslideup_vx_bf16m4_m(vbool4_t vm, vbfloat16m4_t vd,
59+
vbfloat16m4_t vs2, size_t rs1,
60+
size_t vl) {
61+
return __riscv_vslideup_vx_bf16m4_m(vm, vd, vs2, rs1, vl);
62+
}
63+
64+
vbfloat16m8_t test_vslideup_vx_bf16m8_m(vbool2_t vm, vbfloat16m8_t vd,
65+
vbfloat16m8_t vs2, size_t rs1,
66+
size_t vl) {
67+
return __riscv_vslideup_vx_bf16m8_m(vm, vd, vs2, rs1, vl);
68+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// REQUIRES: riscv-registered-target
2+
// RUN: %clang_cc1 -triple riscv64 -target-feature +v \
3+
// RUN: -target-feature +zvfbfmin \
4+
// RUN: -target-feature +zvfbfwma -disable-O0-optnone \
5+
// RUN: -emit-llvm %s -o - | opt -S -passes=mem2reg | \
6+
// RUN: FileCheck --check-prefix=CHECK-RV64 %s
7+
8+
#include <riscv_vector.h>
9+
10+
vbfloat16mf4_t test_vcompress_vm_bf16mf4(vbfloat16mf4_t vs2, vbool64_t vs1,
11+
size_t vl) {
12+
return __riscv_vcompress_vm_bf16mf4(vs2, vs1, vl);
13+
}
14+
15+
vbfloat16mf2_t test_vcompress_vm_bf16mf2(vbfloat16mf2_t vs2, vbool32_t vs1,
16+
size_t vl) {
17+
return __riscv_vcompress_vm_bf16mf2(vs2, vs1, vl);
18+
}
19+
20+
vbfloat16m1_t test_vcompress_vm_bf16m1(vbfloat16m1_t vs2, vbool16_t vs1,
21+
size_t vl) {
22+
return __riscv_vcompress_vm_bf16m1(vs2, vs1, vl);
23+
}
24+
25+
vbfloat16m2_t test_vcompress_vm_bf16m2(vbfloat16m2_t vs2, vbool8_t vs1,
26+
size_t vl) {
27+
return __riscv_vcompress_vm_bf16m2(vs2, vs1, vl);
28+
}
29+
30+
vbfloat16m4_t test_vcompress_vm_bf16m4(vbfloat16m4_t vs2, vbool4_t vs1,
31+
size_t vl) {
32+
return __riscv_vcompress_vm_bf16m4(vs2, vs1, vl);
33+
}
34+
35+
vbfloat16m8_t test_vcompress_vm_bf16m8(vbfloat16m8_t vs2, vbool2_t vs1,
36+
size_t vl) {
37+
return __riscv_vcompress_vm_bf16m8(vs2, vs1, vl);
38+
}

0 commit comments

Comments
 (0)