Skip to content

Commit

Permalink
Merge branch 'main' into zfa
Browse files Browse the repository at this point in the history
Signed-off-by: Allen Baum <[email protected]>
  • Loading branch information
allenjbaum authored Apr 9, 2024
2 parents 29be788 + 8a0cdce commit 6c62015
Show file tree
Hide file tree
Showing 305 changed files with 4,214,766 additions and 5 deletions.
18 changes: 17 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,24 @@
# CHANGELOG

## [3.8.10] - 2023-04-06
## [3.8.13] - 2023-04-06
- Add Zfa support.

## [3.8.12] - 2024-03-26
Corrected missing RV64 strings in RVTEST_CASE macros for Zfh fcvt.h.l and similar tests

## [3.8.11] - 2024-03-26
- Added test suites for Zfh extensions.
- Introduced half word and half width in Nan boxing functionality to accomdate Zfh extensions.
- Added test suites for Zfinx extensions.

## [3.8.10] -- 2024-03-24
- Updated TEST_JALR_OP in test_macros.h
- The macro no longer works when rd = x0 in versions of GCC newer than 2023.12.20
- riscof throws a message /home/jstine/cvw/addins/riscv-arch-test/riscv-test-suite/rv32i_m/I/src/jalr-01.S:72: Error: illegal operands `la x0,5b'
- The TEST_JALR_OP macro invokes LA, which does not like x0 as an operand
- replacing LA(rd, 5b) with auipc rd, 0 in test_macros.h solves the compiler issue and produces similar code but without a bunch of preceeding nops


## [3.8.9] -- 2024-01-12
- Fixed Check ISA fields to include 32/64 in Zicond tests. Note that the riscv-ctg CGFs have not been updated.

Expand Down
21 changes: 20 additions & 1 deletion riscv-test-suite/env/arch_test.h
Original file line number Diff line number Diff line change
Expand Up @@ -242,12 +242,31 @@
#define FLREG fld
#define FSREG fsd
#define FREGWIDTH 8
#elif FLEN==16
#define FLREG flh
#define FSREG fsh
#define FREGWIDTH 2
#else
#define FLREG flq
#define FSREG fsq
#define FREGWIDTH 16
#endif

#if ZFINX==1
#define FLREG ld
#define FSREG sd
#define FREGWIDTH 8
#define FLEN 64
#if XLEN==64
#define SIGALIGN 8
#else
#define SIGALIGN 4
#endif
#elif ZDINX==1
#define FLREG LREG
#define FSREG SREG
#define FREGWIDTH 8
#define FLEN 64
#endif

#if SIGALIGN==8
#define CANARY \
Expand Down
17 changes: 14 additions & 3 deletions riscv-test-suite/env/test_macros.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,18 +191,29 @@


#define NAN_BOXED(__val__,__width__,__max__) ;\
.if __width__ == 16 ;\
.hword __val__ ;\
.endif ;\
.if __width__ == 32 ;\
.word __val__ ;\
.else ;\
.dword __val__ ;\
.endif ;\
.if __max__ > __width__ ;\
.set pref_bytes,(__max__-__width__)/32 ;\
.if __width__ == 16 ;\
.set pref_bytes,(__max__-__width__)/16;\
.else ;\
.set pref_bytes,(__max__-__width__)/32;\
.endif ;\
.else ;\
.set pref_bytes, 0 ;\
.endif ;\
.rept pref_bytes ;\
.word 0xffffffff ;\
.if __width__ == 16 ;\
.hword 0xffff ;\
.else ;\
.word 0xffffffff ;\
.endif ;\
.endr ;

#define ZERO_EXTEND(__val__,__width__,__max__) ;\
Expand Down Expand Up @@ -401,7 +412,7 @@

#define TEST_JALR_OP(tempreg, rd, rs1, imm, swreg, offset,adj) ;\
5: ;\
LA(rd,5b) ;\
auipc rd, 0 ;\
.if adj & 1 == 1 ;\
LA(rs1, 3f-imm+adj-1) ;\
jalr rd, imm+1(rs1) ;\
Expand Down
5,311 changes: 5,311 additions & 0 deletions riscv-test-suite/rv32i_m/Zfh/src/fadd_b1-01.S

Large diffs are not rendered by default.

Loading

0 comments on commit 6c62015

Please sign in to comment.