Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant