-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Auto-gen] Update bfloat16 tests under ../auto-generated. (make git-c…
…ommit-autogen-bf16-test)
- Loading branch information
Showing
472 changed files
with
29,102 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,177 @@ | ||
#include <riscv_vector.h> | ||
#include <stdint.h> | ||
|
||
vbfloat16m2_t test_vcreate_v_bf16m1_bf16m2(vbfloat16m1_t v0, vbfloat16m1_t v1) { | ||
return __riscv_vcreate_v_bf16m1_bf16m2(v0, v1); | ||
} | ||
|
||
vbfloat16m4_t test_vcreate_v_bf16m1_bf16m4(vbfloat16m1_t v0, vbfloat16m1_t v1, | ||
vbfloat16m1_t v2, vbfloat16m1_t v3) { | ||
return __riscv_vcreate_v_bf16m1_bf16m4(v0, v1, v2, v3); | ||
} | ||
|
||
vbfloat16m8_t test_vcreate_v_bf16m1_bf16m8(vbfloat16m1_t v0, vbfloat16m1_t v1, | ||
vbfloat16m1_t v2, vbfloat16m1_t v3, | ||
vbfloat16m1_t v4, vbfloat16m1_t v5, | ||
vbfloat16m1_t v6, vbfloat16m1_t v7) { | ||
return __riscv_vcreate_v_bf16m1_bf16m8(v0, v1, v2, v3, v4, v5, v6, v7); | ||
} | ||
|
||
vbfloat16m4_t test_vcreate_v_bf16m2_bf16m4(vbfloat16m2_t v0, vbfloat16m2_t v1) { | ||
return __riscv_vcreate_v_bf16m2_bf16m4(v0, v1); | ||
} | ||
|
||
vbfloat16m8_t test_vcreate_v_bf16m2_bf16m8(vbfloat16m2_t v0, vbfloat16m2_t v1, | ||
vbfloat16m2_t v2, vbfloat16m2_t v3) { | ||
return __riscv_vcreate_v_bf16m2_bf16m8(v0, v1, v2, v3); | ||
} | ||
|
||
vbfloat16m8_t test_vcreate_v_bf16m4_bf16m8(vbfloat16m4_t v0, vbfloat16m4_t v1) { | ||
return __riscv_vcreate_v_bf16m4_bf16m8(v0, v1); | ||
} | ||
|
||
vbfloat16mf4x2_t test_vcreate_v_bf16mf4x2(vbfloat16mf4_t v0, | ||
vbfloat16mf4_t v1) { | ||
return __riscv_vcreate_v_bf16mf4x2(v0, v1); | ||
} | ||
|
||
vbfloat16mf4x3_t test_vcreate_v_bf16mf4x3(vbfloat16mf4_t v0, vbfloat16mf4_t v1, | ||
vbfloat16mf4_t v2) { | ||
return __riscv_vcreate_v_bf16mf4x3(v0, v1, v2); | ||
} | ||
|
||
vbfloat16mf4x4_t test_vcreate_v_bf16mf4x4(vbfloat16mf4_t v0, vbfloat16mf4_t v1, | ||
vbfloat16mf4_t v2, | ||
vbfloat16mf4_t v3) { | ||
return __riscv_vcreate_v_bf16mf4x4(v0, v1, v2, v3); | ||
} | ||
|
||
vbfloat16mf4x5_t test_vcreate_v_bf16mf4x5(vbfloat16mf4_t v0, vbfloat16mf4_t v1, | ||
vbfloat16mf4_t v2, vbfloat16mf4_t v3, | ||
vbfloat16mf4_t v4) { | ||
return __riscv_vcreate_v_bf16mf4x5(v0, v1, v2, v3, v4); | ||
} | ||
|
||
vbfloat16mf4x6_t test_vcreate_v_bf16mf4x6(vbfloat16mf4_t v0, vbfloat16mf4_t v1, | ||
vbfloat16mf4_t v2, vbfloat16mf4_t v3, | ||
vbfloat16mf4_t v4, | ||
vbfloat16mf4_t v5) { | ||
return __riscv_vcreate_v_bf16mf4x6(v0, v1, v2, v3, v4, v5); | ||
} | ||
|
||
vbfloat16mf4x7_t test_vcreate_v_bf16mf4x7(vbfloat16mf4_t v0, vbfloat16mf4_t v1, | ||
vbfloat16mf4_t v2, vbfloat16mf4_t v3, | ||
vbfloat16mf4_t v4, vbfloat16mf4_t v5, | ||
vbfloat16mf4_t v6) { | ||
return __riscv_vcreate_v_bf16mf4x7(v0, v1, v2, v3, v4, v5, v6); | ||
} | ||
|
||
vbfloat16mf4x8_t test_vcreate_v_bf16mf4x8(vbfloat16mf4_t v0, vbfloat16mf4_t v1, | ||
vbfloat16mf4_t v2, vbfloat16mf4_t v3, | ||
vbfloat16mf4_t v4, vbfloat16mf4_t v5, | ||
vbfloat16mf4_t v6, | ||
vbfloat16mf4_t v7) { | ||
return __riscv_vcreate_v_bf16mf4x8(v0, v1, v2, v3, v4, v5, v6, v7); | ||
} | ||
|
||
vbfloat16mf2x2_t test_vcreate_v_bf16mf2x2(vbfloat16mf2_t v0, | ||
vbfloat16mf2_t v1) { | ||
return __riscv_vcreate_v_bf16mf2x2(v0, v1); | ||
} | ||
|
||
vbfloat16mf2x3_t test_vcreate_v_bf16mf2x3(vbfloat16mf2_t v0, vbfloat16mf2_t v1, | ||
vbfloat16mf2_t v2) { | ||
return __riscv_vcreate_v_bf16mf2x3(v0, v1, v2); | ||
} | ||
|
||
vbfloat16mf2x4_t test_vcreate_v_bf16mf2x4(vbfloat16mf2_t v0, vbfloat16mf2_t v1, | ||
vbfloat16mf2_t v2, | ||
vbfloat16mf2_t v3) { | ||
return __riscv_vcreate_v_bf16mf2x4(v0, v1, v2, v3); | ||
} | ||
|
||
vbfloat16mf2x5_t test_vcreate_v_bf16mf2x5(vbfloat16mf2_t v0, vbfloat16mf2_t v1, | ||
vbfloat16mf2_t v2, vbfloat16mf2_t v3, | ||
vbfloat16mf2_t v4) { | ||
return __riscv_vcreate_v_bf16mf2x5(v0, v1, v2, v3, v4); | ||
} | ||
|
||
vbfloat16mf2x6_t test_vcreate_v_bf16mf2x6(vbfloat16mf2_t v0, vbfloat16mf2_t v1, | ||
vbfloat16mf2_t v2, vbfloat16mf2_t v3, | ||
vbfloat16mf2_t v4, | ||
vbfloat16mf2_t v5) { | ||
return __riscv_vcreate_v_bf16mf2x6(v0, v1, v2, v3, v4, v5); | ||
} | ||
|
||
vbfloat16mf2x7_t test_vcreate_v_bf16mf2x7(vbfloat16mf2_t v0, vbfloat16mf2_t v1, | ||
vbfloat16mf2_t v2, vbfloat16mf2_t v3, | ||
vbfloat16mf2_t v4, vbfloat16mf2_t v5, | ||
vbfloat16mf2_t v6) { | ||
return __riscv_vcreate_v_bf16mf2x7(v0, v1, v2, v3, v4, v5, v6); | ||
} | ||
|
||
vbfloat16mf2x8_t test_vcreate_v_bf16mf2x8(vbfloat16mf2_t v0, vbfloat16mf2_t v1, | ||
vbfloat16mf2_t v2, vbfloat16mf2_t v3, | ||
vbfloat16mf2_t v4, vbfloat16mf2_t v5, | ||
vbfloat16mf2_t v6, | ||
vbfloat16mf2_t v7) { | ||
return __riscv_vcreate_v_bf16mf2x8(v0, v1, v2, v3, v4, v5, v6, v7); | ||
} | ||
|
||
vbfloat16m1x2_t test_vcreate_v_bf16m1x2(vbfloat16m1_t v0, vbfloat16m1_t v1) { | ||
return __riscv_vcreate_v_bf16m1x2(v0, v1); | ||
} | ||
|
||
vbfloat16m1x3_t test_vcreate_v_bf16m1x3(vbfloat16m1_t v0, vbfloat16m1_t v1, | ||
vbfloat16m1_t v2) { | ||
return __riscv_vcreate_v_bf16m1x3(v0, v1, v2); | ||
} | ||
|
||
vbfloat16m1x4_t test_vcreate_v_bf16m1x4(vbfloat16m1_t v0, vbfloat16m1_t v1, | ||
vbfloat16m1_t v2, vbfloat16m1_t v3) { | ||
return __riscv_vcreate_v_bf16m1x4(v0, v1, v2, v3); | ||
} | ||
|
||
vbfloat16m1x5_t test_vcreate_v_bf16m1x5(vbfloat16m1_t v0, vbfloat16m1_t v1, | ||
vbfloat16m1_t v2, vbfloat16m1_t v3, | ||
vbfloat16m1_t v4) { | ||
return __riscv_vcreate_v_bf16m1x5(v0, v1, v2, v3, v4); | ||
} | ||
|
||
vbfloat16m1x6_t test_vcreate_v_bf16m1x6(vbfloat16m1_t v0, vbfloat16m1_t v1, | ||
vbfloat16m1_t v2, vbfloat16m1_t v3, | ||
vbfloat16m1_t v4, vbfloat16m1_t v5) { | ||
return __riscv_vcreate_v_bf16m1x6(v0, v1, v2, v3, v4, v5); | ||
} | ||
|
||
vbfloat16m1x7_t test_vcreate_v_bf16m1x7(vbfloat16m1_t v0, vbfloat16m1_t v1, | ||
vbfloat16m1_t v2, vbfloat16m1_t v3, | ||
vbfloat16m1_t v4, vbfloat16m1_t v5, | ||
vbfloat16m1_t v6) { | ||
return __riscv_vcreate_v_bf16m1x7(v0, v1, v2, v3, v4, v5, v6); | ||
} | ||
|
||
vbfloat16m1x8_t test_vcreate_v_bf16m1x8(vbfloat16m1_t v0, vbfloat16m1_t v1, | ||
vbfloat16m1_t v2, vbfloat16m1_t v3, | ||
vbfloat16m1_t v4, vbfloat16m1_t v5, | ||
vbfloat16m1_t v6, vbfloat16m1_t v7) { | ||
return __riscv_vcreate_v_bf16m1x8(v0, v1, v2, v3, v4, v5, v6, v7); | ||
} | ||
|
||
vbfloat16m2x2_t test_vcreate_v_bf16m2x2(vbfloat16m2_t v0, vbfloat16m2_t v1) { | ||
return __riscv_vcreate_v_bf16m2x2(v0, v1); | ||
} | ||
|
||
vbfloat16m2x3_t test_vcreate_v_bf16m2x3(vbfloat16m2_t v0, vbfloat16m2_t v1, | ||
vbfloat16m2_t v2) { | ||
return __riscv_vcreate_v_bf16m2x3(v0, v1, v2); | ||
} | ||
|
||
vbfloat16m2x4_t test_vcreate_v_bf16m2x4(vbfloat16m2_t v0, vbfloat16m2_t v1, | ||
vbfloat16m2_t v2, vbfloat16m2_t v3) { | ||
return __riscv_vcreate_v_bf16m2x4(v0, v1, v2, v3); | ||
} | ||
|
||
vbfloat16m4x2_t test_vcreate_v_bf16m4x2(vbfloat16m4_t v0, vbfloat16m4_t v1) { | ||
return __riscv_vcreate_v_bf16m4x2(v0, v1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
#include <riscv_vector.h> | ||
#include <stdint.h> | ||
|
||
vbfloat16m1_t test_vget_v_bf16m2_bf16m1(vbfloat16m2_t src, size_t index) { | ||
return __riscv_vget_v_bf16m2_bf16m1(src, 0); | ||
} | ||
|
||
vbfloat16m1_t test_vget_v_bf16m4_bf16m1(vbfloat16m4_t src, size_t index) { | ||
return __riscv_vget_v_bf16m4_bf16m1(src, 0); | ||
} | ||
|
||
vbfloat16m1_t test_vget_v_bf16m8_bf16m1(vbfloat16m8_t src, size_t index) { | ||
return __riscv_vget_v_bf16m8_bf16m1(src, 0); | ||
} | ||
|
||
vbfloat16m2_t test_vget_v_bf16m4_bf16m2(vbfloat16m4_t src, size_t index) { | ||
return __riscv_vget_v_bf16m4_bf16m2(src, 0); | ||
} | ||
|
||
vbfloat16m2_t test_vget_v_bf16m8_bf16m2(vbfloat16m8_t src, size_t index) { | ||
return __riscv_vget_v_bf16m8_bf16m2(src, 0); | ||
} | ||
|
||
vbfloat16m4_t test_vget_v_bf16m8_bf16m4(vbfloat16m8_t src, size_t index) { | ||
return __riscv_vget_v_bf16m8_bf16m4(src, 0); | ||
} | ||
|
||
vbfloat16mf4_t test_vget_v_bf16mf4x2_bf16mf4(vbfloat16mf4x2_t src, | ||
size_t index) { | ||
return __riscv_vget_v_bf16mf4x2_bf16mf4(src, 0); | ||
} | ||
|
||
vbfloat16mf4_t test_vget_v_bf16mf4x3_bf16mf4(vbfloat16mf4x3_t src, | ||
size_t index) { | ||
return __riscv_vget_v_bf16mf4x3_bf16mf4(src, 0); | ||
} | ||
|
||
vbfloat16mf4_t test_vget_v_bf16mf4x4_bf16mf4(vbfloat16mf4x4_t src, | ||
size_t index) { | ||
return __riscv_vget_v_bf16mf4x4_bf16mf4(src, 0); | ||
} | ||
|
||
vbfloat16mf4_t test_vget_v_bf16mf4x5_bf16mf4(vbfloat16mf4x5_t src, | ||
size_t index) { | ||
return __riscv_vget_v_bf16mf4x5_bf16mf4(src, 0); | ||
} | ||
|
||
vbfloat16mf4_t test_vget_v_bf16mf4x6_bf16mf4(vbfloat16mf4x6_t src, | ||
size_t index) { | ||
return __riscv_vget_v_bf16mf4x6_bf16mf4(src, 0); | ||
} | ||
|
||
vbfloat16mf4_t test_vget_v_bf16mf4x7_bf16mf4(vbfloat16mf4x7_t src, | ||
size_t index) { | ||
return __riscv_vget_v_bf16mf4x7_bf16mf4(src, 0); | ||
} | ||
|
||
vbfloat16mf4_t test_vget_v_bf16mf4x8_bf16mf4(vbfloat16mf4x8_t src, | ||
size_t index) { | ||
return __riscv_vget_v_bf16mf4x8_bf16mf4(src, 0); | ||
} | ||
|
||
vbfloat16mf2_t test_vget_v_bf16mf2x2_bf16mf2(vbfloat16mf2x2_t src, | ||
size_t index) { | ||
return __riscv_vget_v_bf16mf2x2_bf16mf2(src, 0); | ||
} | ||
|
||
vbfloat16mf2_t test_vget_v_bf16mf2x3_bf16mf2(vbfloat16mf2x3_t src, | ||
size_t index) { | ||
return __riscv_vget_v_bf16mf2x3_bf16mf2(src, 0); | ||
} | ||
|
||
vbfloat16mf2_t test_vget_v_bf16mf2x4_bf16mf2(vbfloat16mf2x4_t src, | ||
size_t index) { | ||
return __riscv_vget_v_bf16mf2x4_bf16mf2(src, 0); | ||
} | ||
|
||
vbfloat16mf2_t test_vget_v_bf16mf2x5_bf16mf2(vbfloat16mf2x5_t src, | ||
size_t index) { | ||
return __riscv_vget_v_bf16mf2x5_bf16mf2(src, 0); | ||
} | ||
|
||
vbfloat16mf2_t test_vget_v_bf16mf2x6_bf16mf2(vbfloat16mf2x6_t src, | ||
size_t index) { | ||
return __riscv_vget_v_bf16mf2x6_bf16mf2(src, 0); | ||
} | ||
|
||
vbfloat16mf2_t test_vget_v_bf16mf2x7_bf16mf2(vbfloat16mf2x7_t src, | ||
size_t index) { | ||
return __riscv_vget_v_bf16mf2x7_bf16mf2(src, 0); | ||
} | ||
|
||
vbfloat16mf2_t test_vget_v_bf16mf2x8_bf16mf2(vbfloat16mf2x8_t src, | ||
size_t index) { | ||
return __riscv_vget_v_bf16mf2x8_bf16mf2(src, 0); | ||
} | ||
|
||
vbfloat16m1_t test_vget_v_bf16m1x2_bf16m1(vbfloat16m1x2_t src, size_t index) { | ||
return __riscv_vget_v_bf16m1x2_bf16m1(src, 0); | ||
} | ||
|
||
vbfloat16m1_t test_vget_v_bf16m1x3_bf16m1(vbfloat16m1x3_t src, size_t index) { | ||
return __riscv_vget_v_bf16m1x3_bf16m1(src, 0); | ||
} | ||
|
||
vbfloat16m1_t test_vget_v_bf16m1x4_bf16m1(vbfloat16m1x4_t src, size_t index) { | ||
return __riscv_vget_v_bf16m1x4_bf16m1(src, 0); | ||
} | ||
|
||
vbfloat16m1_t test_vget_v_bf16m1x5_bf16m1(vbfloat16m1x5_t src, size_t index) { | ||
return __riscv_vget_v_bf16m1x5_bf16m1(src, 0); | ||
} | ||
|
||
vbfloat16m1_t test_vget_v_bf16m1x6_bf16m1(vbfloat16m1x6_t src, size_t index) { | ||
return __riscv_vget_v_bf16m1x6_bf16m1(src, 0); | ||
} | ||
|
||
vbfloat16m1_t test_vget_v_bf16m1x7_bf16m1(vbfloat16m1x7_t src, size_t index) { | ||
return __riscv_vget_v_bf16m1x7_bf16m1(src, 0); | ||
} | ||
|
||
vbfloat16m1_t test_vget_v_bf16m1x8_bf16m1(vbfloat16m1x8_t src, size_t index) { | ||
return __riscv_vget_v_bf16m1x8_bf16m1(src, 0); | ||
} | ||
|
||
vbfloat16m2_t test_vget_v_bf16m2x2_bf16m2(vbfloat16m2x2_t src, size_t index) { | ||
return __riscv_vget_v_bf16m2x2_bf16m2(src, 0); | ||
} | ||
|
||
vbfloat16m2_t test_vget_v_bf16m2x3_bf16m2(vbfloat16m2x3_t src, size_t index) { | ||
return __riscv_vget_v_bf16m2x3_bf16m2(src, 0); | ||
} | ||
|
||
vbfloat16m2_t test_vget_v_bf16m2x4_bf16m2(vbfloat16m2x4_t src, size_t index) { | ||
return __riscv_vget_v_bf16m2x4_bf16m2(src, 0); | ||
} | ||
|
||
vbfloat16m4_t test_vget_v_bf16m4x2_bf16m4(vbfloat16m4x2_t src, size_t index) { | ||
return __riscv_vget_v_bf16m4x2_bf16m4(src, 0); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#include <riscv_vector.h> | ||
#include <stdint.h> | ||
|
||
vbfloat16mf4_t test_vle16_v_bf16mf4(const __bf16 *rs1, size_t vl) { | ||
return __riscv_vle16_v_bf16mf4(rs1, vl); | ||
} | ||
|
||
vbfloat16mf2_t test_vle16_v_bf16mf2(const __bf16 *rs1, size_t vl) { | ||
return __riscv_vle16_v_bf16mf2(rs1, vl); | ||
} | ||
|
||
vbfloat16m1_t test_vle16_v_bf16m1(const __bf16 *rs1, size_t vl) { | ||
return __riscv_vle16_v_bf16m1(rs1, vl); | ||
} | ||
|
||
vbfloat16m2_t test_vle16_v_bf16m2(const __bf16 *rs1, size_t vl) { | ||
return __riscv_vle16_v_bf16m2(rs1, vl); | ||
} | ||
|
||
vbfloat16m4_t test_vle16_v_bf16m4(const __bf16 *rs1, size_t vl) { | ||
return __riscv_vle16_v_bf16m4(rs1, vl); | ||
} | ||
|
||
vbfloat16m8_t test_vle16_v_bf16m8(const __bf16 *rs1, size_t vl) { | ||
return __riscv_vle16_v_bf16m8(rs1, vl); | ||
} | ||
|
||
vbfloat16mf4_t test_vle16_v_bf16mf4_m(vbool64_t vm, const __bf16 *rs1, | ||
size_t vl) { | ||
return __riscv_vle16_v_bf16mf4_m(vm, rs1, vl); | ||
} | ||
|
||
vbfloat16mf2_t test_vle16_v_bf16mf2_m(vbool32_t vm, const __bf16 *rs1, | ||
size_t vl) { | ||
return __riscv_vle16_v_bf16mf2_m(vm, rs1, vl); | ||
} | ||
|
||
vbfloat16m1_t test_vle16_v_bf16m1_m(vbool16_t vm, const __bf16 *rs1, | ||
size_t vl) { | ||
return __riscv_vle16_v_bf16m1_m(vm, rs1, vl); | ||
} | ||
|
||
vbfloat16m2_t test_vle16_v_bf16m2_m(vbool8_t vm, const __bf16 *rs1, size_t vl) { | ||
return __riscv_vle16_v_bf16m2_m(vm, rs1, vl); | ||
} | ||
|
||
vbfloat16m4_t test_vle16_v_bf16m4_m(vbool4_t vm, const __bf16 *rs1, size_t vl) { | ||
return __riscv_vle16_v_bf16m4_m(vm, rs1, vl); | ||
} | ||
|
||
vbfloat16m8_t test_vle16_v_bf16m8_m(vbool2_t vm, const __bf16 *rs1, size_t vl) { | ||
return __riscv_vle16_v_bf16m8_m(vm, rs1, vl); | ||
} |
Oops, something went wrong.