about summary refs log tree commit diff
path: root/library/stdarch
diff options
context:
space:
mode:
authorGijs Burghoorn <me@gburghoorn.com>2023-09-01 17:19:00 +0200
committerAmanieu d'Antras <amanieu@gmail.com>2023-09-01 18:32:40 +0200
commitf4ee8f02822269ef93ffcc5184ff3cd2e3eee89b (patch)
tree1753504483bb4dd3199460c999fb0338a34df1c6 /library/stdarch
parentc460cf67060242f34153a247eaf9ad047d4eb30f (diff)
downloadrust-f4ee8f02822269ef93ffcc5184ff3cd2e3eee89b.tar.gz
rust-f4ee8f02822269ef93ffcc5184ff3cd2e3eee89b.zip
Fix: Testing for RISC-V Zb intrinsics
Diffstat (limited to 'library/stdarch')
-rw-r--r--library/stdarch/ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile2
-rwxr-xr-xlibrary/stdarch/ci/run.sh2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/stdarch/ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile b/library/stdarch/ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile
index 67f5f4cdefe..7ea795cac25 100644
--- a/library/stdarch/ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile
+++ b/library/stdarch/ci/docker/riscv64gc-unknown-linux-gnu/Dockerfile
@@ -5,5 +5,5 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
         gcc-riscv64-linux-gnu libc6-dev-riscv64-cross
 
 ENV CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_LINKER=riscv64-linux-gnu-gcc \
-    CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_RUNNER="qemu-riscv64 -L /usr/riscv64-linux-gnu -cpu rv64,zk=true" \
+    CARGO_TARGET_RISCV64GC_UNKNOWN_LINUX_GNU_RUNNER="qemu-riscv64 -L /usr/riscv64-linux-gnu -cpu rv64,zk=true,zbb=true,zbc=true" \
     OBJDUMP=riscv64-linux-gnu-objdump
diff --git a/library/stdarch/ci/run.sh b/library/stdarch/ci/run.sh
index 9923fa8e36e..7b2416fdad2 100755
--- a/library/stdarch/ci/run.sh
+++ b/library/stdarch/ci/run.sh
@@ -47,7 +47,7 @@ case ${TARGET} in
     # Some of our test dependencies use the deprecated `gcc` crates which
     # doesn't detect RISC-V compilers automatically, so do it manually here.
     riscv64*)
-        export RUSTFLAGS="${RUSTFLAGS} -Ctarget-feature=+zk"
+        export RUSTFLAGS="${RUSTFLAGS} -Ctarget-feature=+zk,+zbb,+zbc"
         export TARGET_CC="riscv64-linux-gnu-gcc"
         ;;
 esac