diff options
author | Wang Chen <wangchen20@iscas.ac.cn> | 2023-07-10 08:19:58 +0800 |
---|---|---|
committer | Chen Wang <unicorn_wang@outlook.com> | 2023-07-10 11:15:18 +0800 |
commit | 38a474e0892eddf549e2c9d96b5ead6e1377653d (patch) | |
tree | 7a800943e22944c6ec8ac07211a7f1b26c3bab2a | |
parent | db0b2639b2b873e81660fa68eb0e07ffc565dd9c (diff) | |
download | libvpx-38a474e0892eddf549e2c9d96b5ead6e1377653d.tar libvpx-38a474e0892eddf549e2c9d96b5ead6e1377653d.tar.gz libvpx-38a474e0892eddf549e2c9d96b5ead6e1377653d.tar.bz2 libvpx-38a474e0892eddf549e2c9d96b5ead6e1377653d.zip |
enable rvv
Test: CROSS=riscv64-unknown-linux-gnu- ../libvpx/configure --target=riscv64-linux-gcc
Check console output:
......
enabling rvv
......
Check mk files' content:
$ less libs-riscv64-linux-gcc.mk | grep RVV
HAVE_RVV=yes
Signed-off-by: Wang Chen <wangchen20@iscas.ac.cn>
Co-authored-by: sun min <sunmin89@outlook.com>
-rw-r--r-- | build/make/configure.sh | 12 | ||||
-rwxr-xr-x | configure | 7 |
2 files changed, 19 insertions, 0 deletions
diff --git a/build/make/configure.sh b/build/make/configure.sh index 6fd67f162..becfd00bd 100644 --- a/build/make/configure.sh +++ b/build/make/configure.sh @@ -784,6 +784,9 @@ process_common_toolchain() { loongarch64*) tgt_isa=loongarch64 ;; + riscv64*) + tgt_isa=riscv64 + ;; esac # detect tgt_os @@ -861,6 +864,10 @@ process_common_toolchain() { soft_enable lasx enable_feature loongarch ;; + riscv64*) + soft_enable rvv + enable_feature riscv64 + ;; esac # PIC is probably what we want when building shared libs @@ -1458,6 +1465,11 @@ EOF enabled lasx && check_inline_asm lasx '"xvadd.b $xr0, $xr1, $xr1"' enabled lasx && soft_enable runtime_cpu_detect ;; + riscv64*) + link_with_cc=gcc + enable_feature gcc + setup_gnu_toolchain + ;; *-gcc|generic-gnu) link_with_cc=gcc enable_feature gcc @@ -272,6 +272,10 @@ ARCH_EXT_LIST_LOONGSON=" lasx " +ARCH_EXT_LIST_RISCV=" + rvv +" + ARCH_EXT_LIST=" neon neon_asm @@ -286,7 +290,10 @@ ARCH_EXT_LIST=" vsx ${ARCH_EXT_LIST_LOONGSON} + + ${ARCH_EXT_LIST_RISCV} " + HAVE_LIST=" ${ARCH_EXT_LIST} vpx_ports |