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

When flen less than iflen,isac cant generate rs_nanprefix #97

Open
Pagerd opened this issue Sep 19, 2024 · 0 comments
Open

When flen less than iflen,isac cant generate rs_nanprefix #97

Pagerd opened this issue Sep 19, 2024 · 0 comments

Comments

@Pagerd
Copy link

Pagerd commented Sep 19, 2024

In isac, the code for generating sanitise is as follows

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)]))

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)]))

when flen < iflen,it will generate like rs0_nan_prefix == 0x such as fcvt.h.d
will it is a bug? or fcvt.h.d no need to generate prefix

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant