Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

fix prefix bug #98

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions riscv_isac/fp_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@

sanitise_cvpt = lambda rm,x,iflen,flen,c,inxFlg: x + ' fcsr == '+hex(rm<<5) + ' and rm_val == 7 ' \
+ ('' if iflen == flen or inxFlg else ''.join([' and rs'+str(x)+'_nan_prefix == 0x' \
+ 'f'*int((flen-iflen)/4) for x in range(1,c+1)]))
+ 'f'*int(abs((flen-iflen))/4) for x in range(1,c+1)]))

sanitise_norm = lambda rm,x,iflen,flen,c,inxFlg: x + ' fcsr == 0'\
+ ('' if iflen == flen or inxFlg else ''.join([' and rs'+str(x)+'_nan_prefix == 0x' \
+ 'f'*int((flen-iflen)/4) for x in range(1,c+1)]))
+ 'f'*int((abs(flen-iflen))/4) for x in range(1,c+1)]))

sanitise_norm_nopref = lambda rm,x,iflen,flen,c,inxFlg: x + ' fcsr == 0'
sanitise_nopref = lambda rm,x,iflen,flen,c,inxFlg: x + ' fcsr == 0 and rm_val == 7'
Expand Down