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

Coverity issues #2197

Open
andrewbird opened this issue Apr 19, 2024 · 1 comment
Open

Coverity issues #2197

andrewbird opened this issue Apr 19, 2024 · 1 comment

Comments

@andrewbird
Copy link
Member

There are 4 issues in codegen-sim.c that apparently are caused by overlapping memory. Since you can't always see the proper Coverity tool and I think the email only emits entries for new issues, I post a screenshot so that you may these from the 2022 run of Coverity.

Screenshot_2024-04-19_16-23-41

@stsp
Copy link
Member

stsp commented Apr 19, 2024

This is probably a false-positive.
Its just a sign-extension op: we
assign from smaller field to a
larger one of the same register.

Please try to experiment with
different syntaxes. For example:
DR1.d = (signed)DR1.bs.bl; // for signed case
DR1.d = DR1.d & 0xff; // for unsigned case
and so on, to see what would
please coverity.

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

2 participants