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

[Arm] globals should be aligned #587

Closed
eponier opened this issue Sep 27, 2023 · 0 comments
Closed

[Arm] globals should be aligned #587

eponier opened this issue Sep 27, 2023 · 0 comments

Comments

@eponier
Copy link
Contributor

eponier commented Sep 27, 2023

The function

u32 Q = 10;

export fn f() -> reg u32
{
  reg u32 res;

  res = Q;

  return res;
}

may not return 10 because jasmin does not insert in the assembly code the necessary .align instruction, so that Q is aligned and thus read properly.

@vbgl vbgl closed this as completed in 57e55b0 Sep 28, 2023
vbgl pushed a commit that referenced this issue Sep 29, 2023
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

1 participant