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

In-place operations with memory operands #764

Open
vbgl opened this issue Mar 20, 2024 · 0 comments
Open

In-place operations with memory operands #764

vbgl opened this issue Mar 20, 2024 · 0 comments
Labels
bug stack-allocation The compiler pass that handles stack & pointers

Comments

@vbgl
Copy link
Member

vbgl commented Mar 20, 2024

Compiling the following program crashes at asm-generation time:

export fn bad_inc(reg u64 p) {
  [p + 8] = [p] + 1;
}

Stack-allocation is not aware of x86 constraints about source and destination being the same. Lowering might be to blame too.

@vbgl vbgl added bug stack-allocation The compiler pass that handles stack & pointers labels Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug stack-allocation The compiler pass that handles stack & pointers
Projects
None yet
Development

No branches or pull requests

1 participant