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

Assembly support? #186

Open
c410-f3r opened this issue Dec 6, 2023 · 4 comments
Open

Assembly support? #186

c410-f3r opened this issue Dec 6, 2023 · 4 comments
Labels
help wanted Extra attention is needed

Comments

@c410-f3r
Copy link

c410-f3r commented Dec 6, 2023

Stumbled across this project after searching for a way to verify codegen output. In other words, simulate what you find in, for example, tests/codegen but for library authors.

Unfortunately, I couldn't find an example that interacts with asm so here goes my question: Is there a way to verify generated instructions or is there room for such a feature in the future?

@oli-obk
Copy link
Owner

oli-obk commented Dec 6, 2023

There's room for improvement here. Though replicating codegen tests is not straight forward, as it uses some llvm tool I think?

We could roll our own I guess, but that doesn't seem great.

What I wanted to do anyway was to add support for injecting new //@ commands from the user side. So we could write the logic for codegen tests outside of this crate (and pull actual ui tests out of it, too)

@c410-f3r
Copy link
Author

c410-f3r commented Dec 7, 2023

Thank you @oli-obk for the information. If needed, I hope I can help implement this feature in the future.

@madsmtm
Copy link

madsmtm commented Dec 14, 2023

You may be able to make use of filecheck as a substitute for LLVM's filecheck for some of this.

@oli-obk
Copy link
Owner

oli-obk commented Apr 6, 2024

I'm not certain, but I think it can be implemented now. I added a Flag trait that I'm using to drive rustfix and //@run modes.

@oli-obk oli-obk added the help wanted Extra attention is needed label Aug 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants