Skip to content

Commit

Permalink
Adjust vundefined intrinsic test case and support gcc overloaded intr…
Browse files Browse the repository at this point in the history
…insic test

Signed-off-by: Li Xu <xuli1@eswincomputing.com>
  • Loading branch information
xuli authored and eopXD committed Nov 7, 2023
1 parent 8f48a3a commit b69695c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion auto-generated/gnu-api-tests/vundefined.c
Original file line number Diff line number Diff line change
Expand Up @@ -1146,4 +1146,4 @@ vuint64m2x4_t test_vundefined_u64m2x4() {
vuint64m4x2_t test_vundefined_u64m4x2() {
return __riscv_vundefined_u64m4x2();
}
/* { dg-final { scan-assembler-times {vs[1248e][r123468]+\.[ivxfswum.]+\s+[,\sa-x0-9()]+} 285 } } */
/* { dg-final { scan-assembler-times {vs[1248e][r123468]+\.[ivxfswum.]+\s+[,\sa-x0-9()]+} 619 } } */
4 changes: 4 additions & 0 deletions rvv-intrinsic-generator/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -364,9 +364,13 @@ report-gnu:
cd ${GNU_TOOLCHAIN_DIR} && make -j 8
mkdir -p $(GCC_CASES_DIR)/gnu-api-tests
mkdir -p $(GCC_CASES_DIR)/policy_funcs/gnu-api-tests
mkdir -p $(GCC_CASES_DIR)/gnu-overloaded-tests
mkdir -p $(GCC_CASES_DIR)/policy_funcs/gnu-overloaded-tests
cp $(DIR)/../gcc-auto-generated.exp $(GCC_CASES_DIR)/auto-generated.exp
cp -r $(DIR)/gnu-api-tests/* $(GCC_CASES_DIR)/gnu-api-tests/
cp -r $(DIR)/policy_funcs/gnu-api-tests/* $(GCC_CASES_DIR)/policy_funcs/gnu-api-tests/
cp -r $(DIR)/gnu-overloaded-tests/* $(GCC_CASES_DIR)/gnu-overloaded-tests/
cp -r $(DIR)/policy_funcs/gnu-overloaded-tests/* $(GCC_CASES_DIR)/policy_funcs/gnu-overloaded-tests/
mkdir -p $(G++_CASES_DIR)/gnu-api-tests
mkdir -p $(G++_CASES_DIR)/policy_funcs/gnu-api-tests
mkdir -p $(G++_CASES_DIR)/gnu-overloaded-tests
Expand Down
2 changes: 2 additions & 0 deletions rvv-intrinsic-generator/rvv_intrinsic_gen/generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,8 @@ def adjust_api_count_for_vle(api_count, test_file, has_policy, is_overloaded):
api_count = 66
if test_file == "vcreate.c":
api_count = 506
if test_file == "vundefined.c":
api_count = 619
if test_file == "vmv.c":
api_count = 218
if is_overloaded and not has_policy:
Expand Down

0 comments on commit b69695c

Please sign in to comment.