Skip to content

Commit

Permalink
fix isac string bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Pagerd committed Oct 24, 2024
1 parent 2980588 commit a154e03
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions riscv-isac/riscv_isac/fp_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,11 @@
rounding_modes = ['0','1','2','3','4']

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' \
+ ('' 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)]))

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' \
+ ('' 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)]))

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

0 comments on commit a154e03

Please sign in to comment.