Skip to content

Commit

Permalink
[cases] rvv_bench built from upstream source
Browse files Browse the repository at this point in the history
  • Loading branch information
SharzyL authored and sequencer committed Aug 9, 2024
1 parent bc7b10f commit 4ee121a
Show file tree
Hide file tree
Showing 33 changed files with 150 additions and 3,428 deletions.
2 changes: 1 addition & 1 deletion difftest/online_dpi/src/dpi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ unsafe fn load_from_payload<'a>(
let data = &byte_vec[strb_width_in_byte..];

let strb_width_in_bit = std::cmp::min(8, data_width_in_byte);
let mut masks: Vec<bool> = strobe
let masks: Vec<bool> = strobe
.into_iter()
.flat_map(|strb| {
let mask: Vec<bool> = (0..strb_width_in_bit).map(|i| (strb & (1 << i)) != 0).collect();
Expand Down
10 changes: 6 additions & 4 deletions tests/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,11 @@ let
builtins.fromJSON (lib.fileContents extraFeatures)
else [ ];

filterByFeatures = caseName: caseDrv:
assert lib.assertMsg (caseDrv ? featuresRequired) "${caseName} doesn't have features specified";
# Test the case required extensions is supported by rtl design
isSubsetOf currentFeatures caseDrv.featuresRequired;

findAndBuild = dir: build:
lib.recurseIntoAttrs (lib.pipe (builtins.readDir dir) [
# filter out all non-directory entrires and underscore-prefixed directories
Expand All @@ -60,10 +65,7 @@ let
inherit caseName sourcePath;
})
)
(lib.filterAttrs (caseName: caseDrv:
assert lib.assertMsg (caseDrv ? featuresRequired) "${caseName} doesn't have features specified";
# Test the case required extensions is supported by rtl design
isSubsetOf currentFeatures caseDrv.featuresRequired))
(lib.filterAttrs casesSelf.filterByFeatures)
]);
t1main = ./t1_main.S;
linkerScript = ./t1.ld;
Expand Down
170 changes: 0 additions & 170 deletions tests/rvv_bench/_include/bench.h

This file was deleted.

25 changes: 0 additions & 25 deletions tests/rvv_bench/_include/config.h

This file was deleted.

80 changes: 0 additions & 80 deletions tests/rvv_bench/_include/nolibc.h

This file was deleted.

80 changes: 0 additions & 80 deletions tests/rvv_bench/_include/template.S

This file was deleted.

Loading

0 comments on commit 4ee121a

Please sign in to comment.