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

Cannot perform conversion from %vec(%bv64) to %fvec(31, %bv64) #971

Open
fahadausaf opened this issue Feb 11, 2025 · 3 comments
Open

Cannot perform conversion from %vec(%bv64) to %fvec(31, %bv64) #971

fahadausaf opened this issue Feb 11, 2025 · 3 comments

Comments

@fahadausaf
Copy link

Instruction: LDR(Register)
Sail Compiler: 0.18

This error occurred while compiling Sail specification for Arm LDR-Register instruction to SystemVerilog. The code compiles successfully when compiled to C

Image

@martinberger
Copy link

Which version of Arm do you transpile from?

@fahadausaf
Copy link
Author

It's the latest version available on sail-repo, i.e. v9.4

@martinberger
Copy link

martinberger commented Feb 11, 2025

Looking at the screenshot above, it would be useful if the SV-backend would give an indication what source lines are causing the problem. @Alasdair is there a command line option that enables that behaviour? I know that the Sail compiler is good at tracking code provenance.

The line number 1606 in the screen shot is the definition of TMState but it's not clear if the error is triggered by translation of a constructor or destructor for TMState, or when an instance of that type is used.

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