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

[BUG]: Test failed from 13 to 20 #72

Open
albertethon opened this issue Jan 11, 2024 · 0 comments
Open

[BUG]: Test failed from 13 to 20 #72

albertethon opened this issue Jan 11, 2024 · 0 comments

Comments

@albertethon
Copy link

Test failed from 13-20.

The error message is
incorrect register %r8' used with l' suffix

It seems that movzbl can only use 32-bit registers?

int cgloadglob(int id) {
//...
    case P_INT:
      fprintf(Outfile, "\tmovzbl\t%s(\%%rip), %s\n", Gsym[id].name,
	      reglist[r]);
//...

should reglist[r] be changed to dreglist[r] ?
The test passed when I made this change

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