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

Crash when using instructions with fancy suffixes #421

Closed
vbgl opened this issue Apr 21, 2023 · 0 comments · Fixed by #422
Closed

Crash when using instructions with fancy suffixes #421

vbgl opened this issue Apr 21, 2023 · 0 comments · Fixed by #422

Comments

@vbgl
Copy link
Member

vbgl commented Apr 21, 2023

The following program leads to a crash in register allocation.

export fn cqo128() {
  reg u128 x;
  x = #set0_128();
  x = #CQO_128(x);
}

internal compilation error in function cqo128:
Variable allocation: x (defined at "tests/success/x86-64/cqo.jazz", line 21 (11-12)) and RAX (defined at "", line -1 (-1)) : type mismatch

An ideal fix would be to detect during (pre-)typing that there is no CQO instruction at size 128-bit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant