-
Notifications
You must be signed in to change notification settings - Fork 47
catalyst.print
incorrectly stacks multiple literals
#1747
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
Comments
@paul0403 , is this stacking or just that the strings are not null terminated? |
The strings are not null terminated in the runtime stub. |
It is kind of weird. We had this error in the past, but it was fixed... #404 |
Just a note that the frontend pytest does not see this because
|
Ahh, then the null terminator in in print primitive lowering (added in the fix #418) was not added! |
Is it possible to print strings using the print_p primitive now from the frontend? Or is it only used for memrefs? Because if it is not reachable from the frontend, I would say that the error is in your program. Your strings are not null terminated. |
I think you are right, print_p without memrefs and only pure string literals is unreachable in the frontend. |
Uh oh!
There was an error while loading. Please reload this page.
Since
debug.print
in frontend traces to callbacks instead ofprint_p
now, I am using replace_ir to showcase this bug.The text was updated successfully, but these errors were encountered: