We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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 I compile the following program:
u32[1] C = {1}; export fn main() -> reg u32 { reg ptr u32[1] Cp; stack ptr u32[1] Cps; reg u32 c; Cp = C; Cps = Cp; Cp = Cps; c = Cp[0]; return c; }
I get:
, line 10 (2-11): compilation error in function main: asmgen: instruction ADD is given incompatible args. Allowed args are: [[reg]; [reg]; [reg]] [[reg]; [reg]; [imm 32]]
Line 10, corresponds to Cps = Cp;.
Cps = Cp;
Is seems that it is not possible to move a reg ptr into the stack. Is this a bug?
The text was updated successfully, but these errors were encountered:
Thanks for the report. That’s a bug: stack-alloc is emitting invalid instructions.
Sorry, something went wrong.
fixes(#622)
7fb42f5
ARM: instruction selection for stack-allocation
ea4f20d
Fixes #622
188d781
4ceb9b7
Fixes #622 (cherry picked from commit 188d781)
bgregoir
No branches or pull requests
When I compile the following program:
I get:
Line 10, corresponds to
Cps = Cp;
.Is seems that it is not possible to move a reg ptr into the stack. Is this a bug?
The text was updated successfully, but these errors were encountered: