mirror of
https://github.com/openhwgroup/cvw
synced 2025-02-02 17:55:19 +00:00
Debug test case updates
This commit is contained in:
parent
a445e53e8d
commit
99a1683f8e
@ -4,6 +4,7 @@ TARGET = debug
|
|||||||
|
|
||||||
$(TARGET).signature.output: $(TARGET).elf.memfile $(TARGET).elf
|
$(TARGET).signature.output: $(TARGET).elf.memfile $(TARGET).elf
|
||||||
spike --isa=rv64gc +signature=$(TARGET).signature.output +signature-granularity=4 $(TARGET).elf
|
spike --isa=rv64gc +signature=$(TARGET).signature.output +signature-granularity=4 $(TARGET).elf
|
||||||
|
riscv_sim_RV64 debug.elf -T debug.sig
|
||||||
# diff --ignore-case $(TARGET).signature.output $(TARGET).reference_output || exit
|
# diff --ignore-case $(TARGET).signature.output $(TARGET).reference_output || exit
|
||||||
# echo "Signature matches! Success!"
|
# echo "Signature matches! Success!"
|
||||||
mkdir -p ../work
|
mkdir -p ../work
|
||||||
|
@ -18,24 +18,29 @@ rvtest_entry_point:
|
|||||||
fsd f12, 0(a6)
|
fsd f12, 0(a6)
|
||||||
|
|
||||||
# openhwgroup/cvw Issue #56
|
# openhwgroup/cvw Issue #56
|
||||||
fld f4, 16(a7)
|
fld f4, 16(a7) # cfa695b1047553b1
|
||||||
fld f14, 24(a7)
|
fld f14, 24(a7)
|
||||||
fsgnjx.s f10,f4,f14 # expected f 0xffffffff7fc00000, hdl has been giving 0xcfa695b1047553b1
|
fsgnjx.s f10,f4,f14 # expected f 0xffffffff7fc00000, hdl has been giving 0xcfa695b1047553b1
|
||||||
fsd f19, 8(a6)
|
fsd f19, 16(a6)
|
||||||
|
|
||||||
# openhwgroup/cvw Issue #57
|
# openhwgroup/cvw Issue #57
|
||||||
fld f0, 32(a7)
|
fld f0, 32(a7)
|
||||||
fld f15, 40(a7)
|
fld f15, 40(a7)
|
||||||
fsgnjx.s f30,f0,f15 # expected f 0xfffffffffb3754ef, hdl has been giving 0xffffffff7b3754ef
|
fsgnjx.s f30,f0,f15 # expected f 0xfffffffffb3754ef, hdl has been giving 0xffffffff7b3754ef
|
||||||
fsd f30, 16(a6)
|
fsd f30, 24(a6)
|
||||||
|
|
||||||
# openhwgroup/cvw Issue #58
|
# openhwgroup/cvw Issue #58
|
||||||
fld f14, 48(a7)
|
fld f14, 48(a7)
|
||||||
fclass.s x2, f14 # expected 0x0000000000000200, hdl had been giving 0x0000000000000220
|
fclass.s x2, f14 # expected 0x0000000000000200, hdl had been giving 0x0000000000000220
|
||||||
sd x2, 24(a6)
|
sd x2, 32(a6)
|
||||||
|
|
||||||
# fsgnjx.s, fclass.s, fsgnjn.s, fsgnj.s, fneg.s, fabs.s, fmv.s all treat inputs as dp rather than sp
|
# fsgnjx.s, fclass.s, fsgnjn.s, fsgnj.s, fneg.s, fabs.s, fmv.s all treat inputs as dp rather than sp
|
||||||
|
|
||||||
|
#openhwgroup/cvw Issue #65 #expected 0xffffffffffffffff, hdl had been giving 0x00000000ffffffff
|
||||||
|
fld f17, 56(a7)
|
||||||
|
fmv.x.s x30, f17
|
||||||
|
sd x30, 40(a6)
|
||||||
|
|
||||||
|
|
||||||
#########################
|
#########################
|
||||||
# HTIF and signature
|
# HTIF and signature
|
||||||
@ -66,6 +71,7 @@ rvtest_data:
|
|||||||
.dword 0xffffffff7fc00000
|
.dword 0xffffffff7fc00000
|
||||||
.dword 0xfffffffffb3754ef
|
.dword 0xfffffffffb3754ef
|
||||||
.dword 0x7fefffffffffffff
|
.dword 0x7fefffffffffffff
|
||||||
|
.dword 0x00000000ffffffff
|
||||||
|
|
||||||
.EQU XLEN,64
|
.EQU XLEN,64
|
||||||
begin_signature:
|
begin_signature:
|
||||||
|
Loading…
Reference in New Issue
Block a user