Skip to content

Commit

Permalink
attempt to manually add recip7 and rsqrte7 for riscv-vector isa
Browse files Browse the repository at this point in the history
fix an include

add f32_recip7 and include header in rvfloats
  • Loading branch information
MichaelJSr committed Oct 14, 2024
1 parent 3334f53 commit df2ce0d
Show file tree
Hide file tree
Showing 11 changed files with 436 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ jobs:
strategy:
fail-fast: false
matrix:
name: [regression, opencl, cache, config1, config2, debug, scope, stress, synthesis, vm]
name: [regression, opencl, cache, config1, config2, debug, scope, stress, synthesis, vm, vector]
xlen: [32, 64]

steps:
Expand Down
3 changes: 1 addition & 2 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
[submodule "third_party/softfloat"]
path = third_party/softfloat
url = https://github.com/troibe/berkeley-softfloat-3.git
branch = sync-with-spike-version-3d
url = https://github.com/ucb-bar/berkeley-softfloat-3.git
[submodule "third_party/ramulator"]
path = third_party/ramulator
url = https://github.com/CMU-SAFARI/ramulator2.git
Expand Down
15 changes: 14 additions & 1 deletion ci/regression.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -379,10 +379,19 @@ synthesis()
echo "synthesis tests done!"
}

vector()
{
echo "begin vector tests..."

VLEN=256 ./tests/riscv/riscv-vector-tests/run-test.sh

echo "vector tests done!"
}

show_usage()
{
echo "Vortex Regression Test"
echo "Usage: $0 [--clean] [--unittest] [--isa] [--kernel] [--regression] [--opencl] [--cache] [--config1] [--config2] [--debug] [--scope] [--stress] [--synthesis] [--all] [--h|--help]"
echo "Usage: $0 [--clean] [--unittest] [--isa] [--kernel] [--regression] [--opencl] [--cache] [--config1] [--config2] [--debug] [--scope] [--stress] [--synthesis] [--vector] [--all] [--h|--help]"
}

declare -a tests=()
Expand Down Expand Up @@ -432,6 +441,9 @@ while [ "$1" != "" ]; do
--synthesis )
tests+=("synthesis")
;;
--vector )
tests+=("vector")
;;
--all )
tests=()
tests+=("unittest")
Expand All @@ -447,6 +459,7 @@ while [ "$1" != "" ]; do
tests+=("scope")
tests+=("stress")
tests+=("synthesis")
tests+=("vector")
;;
-h | --help )
show_usage
Expand Down
2 changes: 1 addition & 1 deletion ci/toolchain_install.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# exit when any command fails
set -e

REPOSITORY=https://github.com/vortexgpgpu/vortex-toolchain-prebuilt/raw/6d412be839cf12d781e87ba1e0cb4b323b7ea359 # The commits after this one broke compatibility
REPOSITORY=https://github.com/vortexgpgpu/vortex-toolchain-prebuilt/raw/master
TOOLDIR=${TOOLDIR:=@TOOLDIR@}
OSVERSION=${OSVERSION:=@OSVERSION@}

Expand Down
1 change: 1 addition & 0 deletions sim/common/rvfloats.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

extern "C" {
#include <softfloat.h>
#include "softfloat_ext.h"
#include <internals.h>
#include <../RISCV/specialize.h>
}
Expand Down
Loading

0 comments on commit df2ce0d

Please sign in to comment.