projects
/
riscv-tests.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
30dcd14
)
comments on remap csrs
author
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sun, 4 Nov 2018 16:56:38 +0000
(16:56 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Sun, 4 Nov 2018 16:56:38 +0000
(16:56 +0000)
isa/rv64ud/sv_fadd_remap.S
patch
|
blob
|
history
diff --git
a/isa/rv64ud/sv_fadd_remap.S
b/isa/rv64ud/sv_fadd_remap.S
index c0af566c6b2ea8ffcb518ed70b51818ad450305f..794c1a5d5145a90bb6913e7e067974523947e12a 100644
(file)
--- a/
isa/rv64ud/sv_fadd_remap.S
+++ b/
isa/rv64ud/sv_fadd_remap.S
@@
-29,6
+29,10
@@
RVTEST_CODE_BEGIN # Start of test code.
SET_SV_2CSRS( SV_REG_CSR(0, 1, 0, 1, 1),
SV_REG_CSR(0, 7, 0, 7, 1) )
SET_SV_REMAP_CSR(7, 0, 0, 0, 0, 0);
+ // x=3, y=2, z=1, where remap swaps xy to yx. therefore:
+ // 0 1 2 -> 0 3
+ // 3 4 5 -> 1 4
+ // -> 2 5
SET_SV_SHAPE0_CSR(3, 2, 1, 0, SV_SHAPE_PERM_YXZ );
SET_SV_VL(6)