-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle bfloat16 in misc_op_template.py
- Loading branch information
Showing
13 changed files
with
380 additions
and
365 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 |
---|---|---|
@@ -1,62 +1,62 @@ | ||
#include <riscv_vector.h> | ||
#include <stdint.h> | ||
|
||
vbfloat16mf2_t test_vlmul_ext_v_b16mf4_b16mf2(vbfloat16mf4_t value) { | ||
return __riscv_vlmul_ext_v_b16mf4_b16mf2(value); | ||
vbfloat16mf2_t test_vlmul_ext_v_bf16mf4_bf16mf2(vbfloat16mf4_t value) { | ||
return __riscv_vlmul_ext_v_bf16mf4_bf16mf2(value); | ||
} | ||
|
||
vbfloat16m1_t test_vlmul_ext_v_b16mf4_b16m1(vbfloat16mf4_t value) { | ||
return __riscv_vlmul_ext_v_b16mf4_b16m1(value); | ||
vbfloat16m1_t test_vlmul_ext_v_bf16mf4_bf16m1(vbfloat16mf4_t value) { | ||
return __riscv_vlmul_ext_v_bf16mf4_bf16m1(value); | ||
} | ||
|
||
vbfloat16m2_t test_vlmul_ext_v_b16mf4_b16m2(vbfloat16mf4_t value) { | ||
return __riscv_vlmul_ext_v_b16mf4_b16m2(value); | ||
vbfloat16m2_t test_vlmul_ext_v_bf16mf4_bf16m2(vbfloat16mf4_t value) { | ||
return __riscv_vlmul_ext_v_bf16mf4_bf16m2(value); | ||
} | ||
|
||
vbfloat16m4_t test_vlmul_ext_v_b16mf4_b16m4(vbfloat16mf4_t value) { | ||
return __riscv_vlmul_ext_v_b16mf4_b16m4(value); | ||
vbfloat16m4_t test_vlmul_ext_v_bf16mf4_bf16m4(vbfloat16mf4_t value) { | ||
return __riscv_vlmul_ext_v_bf16mf4_bf16m4(value); | ||
} | ||
|
||
vbfloat16m8_t test_vlmul_ext_v_b16mf4_b16m8(vbfloat16mf4_t value) { | ||
return __riscv_vlmul_ext_v_b16mf4_b16m8(value); | ||
vbfloat16m8_t test_vlmul_ext_v_bf16mf4_bf16m8(vbfloat16mf4_t value) { | ||
return __riscv_vlmul_ext_v_bf16mf4_bf16m8(value); | ||
} | ||
|
||
vbfloat16m1_t test_vlmul_ext_v_b16mf2_b16m1(vbfloat16mf2_t value) { | ||
return __riscv_vlmul_ext_v_b16mf2_b16m1(value); | ||
vbfloat16m1_t test_vlmul_ext_v_bf16mf2_bf16m1(vbfloat16mf2_t value) { | ||
return __riscv_vlmul_ext_v_bf16mf2_bf16m1(value); | ||
} | ||
|
||
vbfloat16m2_t test_vlmul_ext_v_b16mf2_b16m2(vbfloat16mf2_t value) { | ||
return __riscv_vlmul_ext_v_b16mf2_b16m2(value); | ||
vbfloat16m2_t test_vlmul_ext_v_bf16mf2_bf16m2(vbfloat16mf2_t value) { | ||
return __riscv_vlmul_ext_v_bf16mf2_bf16m2(value); | ||
} | ||
|
||
vbfloat16m4_t test_vlmul_ext_v_b16mf2_b16m4(vbfloat16mf2_t value) { | ||
return __riscv_vlmul_ext_v_b16mf2_b16m4(value); | ||
vbfloat16m4_t test_vlmul_ext_v_bf16mf2_bf16m4(vbfloat16mf2_t value) { | ||
return __riscv_vlmul_ext_v_bf16mf2_bf16m4(value); | ||
} | ||
|
||
vbfloat16m8_t test_vlmul_ext_v_b16mf2_b16m8(vbfloat16mf2_t value) { | ||
return __riscv_vlmul_ext_v_b16mf2_b16m8(value); | ||
vbfloat16m8_t test_vlmul_ext_v_bf16mf2_bf16m8(vbfloat16mf2_t value) { | ||
return __riscv_vlmul_ext_v_bf16mf2_bf16m8(value); | ||
} | ||
|
||
vbfloat16m2_t test_vlmul_ext_v_b16m1_b16m2(vbfloat16m1_t value) { | ||
return __riscv_vlmul_ext_v_b16m1_b16m2(value); | ||
vbfloat16m2_t test_vlmul_ext_v_bf16m1_bf16m2(vbfloat16m1_t value) { | ||
return __riscv_vlmul_ext_v_bf16m1_bf16m2(value); | ||
} | ||
|
||
vbfloat16m4_t test_vlmul_ext_v_b16m1_b16m4(vbfloat16m1_t value) { | ||
return __riscv_vlmul_ext_v_b16m1_b16m4(value); | ||
vbfloat16m4_t test_vlmul_ext_v_bf16m1_bf16m4(vbfloat16m1_t value) { | ||
return __riscv_vlmul_ext_v_bf16m1_bf16m4(value); | ||
} | ||
|
||
vbfloat16m8_t test_vlmul_ext_v_b16m1_b16m8(vbfloat16m1_t value) { | ||
return __riscv_vlmul_ext_v_b16m1_b16m8(value); | ||
vbfloat16m8_t test_vlmul_ext_v_bf16m1_bf16m8(vbfloat16m1_t value) { | ||
return __riscv_vlmul_ext_v_bf16m1_bf16m8(value); | ||
} | ||
|
||
vbfloat16m4_t test_vlmul_ext_v_b16m2_b16m4(vbfloat16m2_t value) { | ||
return __riscv_vlmul_ext_v_b16m2_b16m4(value); | ||
vbfloat16m4_t test_vlmul_ext_v_bf16m2_bf16m4(vbfloat16m2_t value) { | ||
return __riscv_vlmul_ext_v_bf16m2_bf16m4(value); | ||
} | ||
|
||
vbfloat16m8_t test_vlmul_ext_v_b16m2_b16m8(vbfloat16m2_t value) { | ||
return __riscv_vlmul_ext_v_b16m2_b16m8(value); | ||
vbfloat16m8_t test_vlmul_ext_v_bf16m2_bf16m8(vbfloat16m2_t value) { | ||
return __riscv_vlmul_ext_v_bf16m2_bf16m8(value); | ||
} | ||
|
||
vbfloat16m8_t test_vlmul_ext_v_b16m4_b16m8(vbfloat16m4_t value) { | ||
return __riscv_vlmul_ext_v_b16m4_b16m8(value); | ||
vbfloat16m8_t test_vlmul_ext_v_bf16m4_bf16m8(vbfloat16m4_t value) { | ||
return __riscv_vlmul_ext_v_bf16m4_bf16m8(value); | ||
} |
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 |
---|---|---|
@@ -1,62 +1,62 @@ | ||
#include <riscv_vector.h> | ||
#include <stdint.h> | ||
|
||
vbfloat16mf4_t test_vlmul_trunc_v_b16mf2_b16mf4(vbfloat16mf2_t value) { | ||
return __riscv_vlmul_trunc_v_b16mf2_b16mf4(value); | ||
vbfloat16mf4_t test_vlmul_trunc_v_bf16mf2_bf16mf4(vbfloat16mf2_t value) { | ||
return __riscv_vlmul_trunc_v_bf16mf2_bf16mf4(value); | ||
} | ||
|
||
vbfloat16mf4_t test_vlmul_trunc_v_b16m1_b16mf4(vbfloat16m1_t value) { | ||
return __riscv_vlmul_trunc_v_b16m1_b16mf4(value); | ||
vbfloat16mf4_t test_vlmul_trunc_v_bf16m1_bf16mf4(vbfloat16m1_t value) { | ||
return __riscv_vlmul_trunc_v_bf16m1_bf16mf4(value); | ||
} | ||
|
||
vbfloat16mf2_t test_vlmul_trunc_v_b16m1_b16mf2(vbfloat16m1_t value) { | ||
return __riscv_vlmul_trunc_v_b16m1_b16mf2(value); | ||
vbfloat16mf2_t test_vlmul_trunc_v_bf16m1_bf16mf2(vbfloat16m1_t value) { | ||
return __riscv_vlmul_trunc_v_bf16m1_bf16mf2(value); | ||
} | ||
|
||
vbfloat16mf4_t test_vlmul_trunc_v_b16m2_b16mf4(vbfloat16m2_t value) { | ||
return __riscv_vlmul_trunc_v_b16m2_b16mf4(value); | ||
vbfloat16mf4_t test_vlmul_trunc_v_bf16m2_bf16mf4(vbfloat16m2_t value) { | ||
return __riscv_vlmul_trunc_v_bf16m2_bf16mf4(value); | ||
} | ||
|
||
vbfloat16mf2_t test_vlmul_trunc_v_b16m2_b16mf2(vbfloat16m2_t value) { | ||
return __riscv_vlmul_trunc_v_b16m2_b16mf2(value); | ||
vbfloat16mf2_t test_vlmul_trunc_v_bf16m2_bf16mf2(vbfloat16m2_t value) { | ||
return __riscv_vlmul_trunc_v_bf16m2_bf16mf2(value); | ||
} | ||
|
||
vbfloat16m1_t test_vlmul_trunc_v_b16m2_b16m1(vbfloat16m2_t value) { | ||
return __riscv_vlmul_trunc_v_b16m2_b16m1(value); | ||
vbfloat16m1_t test_vlmul_trunc_v_bf16m2_bf16m1(vbfloat16m2_t value) { | ||
return __riscv_vlmul_trunc_v_bf16m2_bf16m1(value); | ||
} | ||
|
||
vbfloat16mf4_t test_vlmul_trunc_v_b16m4_b16mf4(vbfloat16m4_t value) { | ||
return __riscv_vlmul_trunc_v_b16m4_b16mf4(value); | ||
vbfloat16mf4_t test_vlmul_trunc_v_bf16m4_bf16mf4(vbfloat16m4_t value) { | ||
return __riscv_vlmul_trunc_v_bf16m4_bf16mf4(value); | ||
} | ||
|
||
vbfloat16mf2_t test_vlmul_trunc_v_b16m4_b16mf2(vbfloat16m4_t value) { | ||
return __riscv_vlmul_trunc_v_b16m4_b16mf2(value); | ||
vbfloat16mf2_t test_vlmul_trunc_v_bf16m4_bf16mf2(vbfloat16m4_t value) { | ||
return __riscv_vlmul_trunc_v_bf16m4_bf16mf2(value); | ||
} | ||
|
||
vbfloat16m1_t test_vlmul_trunc_v_b16m4_b16m1(vbfloat16m4_t value) { | ||
return __riscv_vlmul_trunc_v_b16m4_b16m1(value); | ||
vbfloat16m1_t test_vlmul_trunc_v_bf16m4_bf16m1(vbfloat16m4_t value) { | ||
return __riscv_vlmul_trunc_v_bf16m4_bf16m1(value); | ||
} | ||
|
||
vbfloat16m2_t test_vlmul_trunc_v_b16m4_b16m2(vbfloat16m4_t value) { | ||
return __riscv_vlmul_trunc_v_b16m4_b16m2(value); | ||
vbfloat16m2_t test_vlmul_trunc_v_bf16m4_bf16m2(vbfloat16m4_t value) { | ||
return __riscv_vlmul_trunc_v_bf16m4_bf16m2(value); | ||
} | ||
|
||
vbfloat16mf4_t test_vlmul_trunc_v_b16m8_b16mf4(vbfloat16m8_t value) { | ||
return __riscv_vlmul_trunc_v_b16m8_b16mf4(value); | ||
vbfloat16mf4_t test_vlmul_trunc_v_bf16m8_bf16mf4(vbfloat16m8_t value) { | ||
return __riscv_vlmul_trunc_v_bf16m8_bf16mf4(value); | ||
} | ||
|
||
vbfloat16mf2_t test_vlmul_trunc_v_b16m8_b16mf2(vbfloat16m8_t value) { | ||
return __riscv_vlmul_trunc_v_b16m8_b16mf2(value); | ||
vbfloat16mf2_t test_vlmul_trunc_v_bf16m8_bf16mf2(vbfloat16m8_t value) { | ||
return __riscv_vlmul_trunc_v_bf16m8_bf16mf2(value); | ||
} | ||
|
||
vbfloat16m1_t test_vlmul_trunc_v_b16m8_b16m1(vbfloat16m8_t value) { | ||
return __riscv_vlmul_trunc_v_b16m8_b16m1(value); | ||
vbfloat16m1_t test_vlmul_trunc_v_bf16m8_bf16m1(vbfloat16m8_t value) { | ||
return __riscv_vlmul_trunc_v_bf16m8_bf16m1(value); | ||
} | ||
|
||
vbfloat16m2_t test_vlmul_trunc_v_b16m8_b16m2(vbfloat16m8_t value) { | ||
return __riscv_vlmul_trunc_v_b16m8_b16m2(value); | ||
vbfloat16m2_t test_vlmul_trunc_v_bf16m8_bf16m2(vbfloat16m8_t value) { | ||
return __riscv_vlmul_trunc_v_bf16m8_bf16m2(value); | ||
} | ||
|
||
vbfloat16m4_t test_vlmul_trunc_v_b16m8_b16m4(vbfloat16m8_t value) { | ||
return __riscv_vlmul_trunc_v_b16m8_b16m4(value); | ||
vbfloat16m4_t test_vlmul_trunc_v_bf16m8_bf16m4(vbfloat16m8_t value) { | ||
return __riscv_vlmul_trunc_v_bf16m8_bf16m4(value); | ||
} |
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
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
Oops, something went wrong.