diff --git a/.github/workflows/emu.yml b/.github/workflows/emu.yml index e6368a6e7a..8d333523ff 100644 --- a/.github/workflows/emu.yml +++ b/.github/workflows/emu.yml @@ -149,6 +149,9 @@ jobs: - name: F16 Test - f16_test run: | python3 ./scripts/xiangshan.py --wave-dump ./build --thread 16 --numa --ci f16_test 2> /dev/zero + - name: Zcb Extension Test - zcb-test + run: | + python3 $GITHUB_WORKSPACE/scripts/xiangshan.py --wave-dump $WAVE_HOME --threads 16 --numa --ci zcb-test 2> /dev/zero emu-chi: runs-on: bosc needs: changes diff --git a/scripts/xiangshan.py b/scripts/xiangshan.py index ba33db1415..efeb985cf3 100644 --- a/scripts/xiangshan.py +++ b/scripts/xiangshan.py @@ -485,6 +485,13 @@ def __get_ci_F16test(self, name=None): ] f16_test = map(lambda x: os.path.join(base_dir, x), workloads) return f16_test + def __get_ci_zcbtest(self, name=None): + base_dir = "/nfs/home/share/ci-workloads/zcb-test" + workloads = [ + "zcb-test-riscv64-xs.bin" + ] + zcb_test = map(lambda x: os.path.join(base_dir, x), workloads) + return zcb_test def __get_ci_mc(self, name=None): base_dir = "/nfs/home/share/ci-workloads" @@ -568,7 +575,8 @@ def run_ci(self, test): "coremark-1-iteration": self.__am_apps_path, "rvv-bench": self.__get_ci_rvvbench, "rvv-test": self.__get_ci_rvvtest, - "f16_test": self.__get_ci_F16test + "f16_test": self.__get_ci_F16test, + "zcb-test": self.__get_ci_zcbtest } for target in all_tests.get(test, self.__get_ci_workloads)(test): print(target) @@ -596,7 +604,8 @@ def run_ci_vcs(self, test): "coremark-1-iteration": self.__am_apps_path, "rvv-bench": self.__get_ci_rvvbench, "rvv-test": self.__get_ci_rvvtest, - "f16_test": self.__get_ci_F16test + "f16_test": self.__get_ci_F16test, + "zcb-test": self.__get_ci_zcbtest } for target in all_tests.get(test, self.__get_ci_workloads)(test): print(target)