#72·acwj

[BUG]: Test failed from 13 to 20

Author: albertethonCreated Jan 11, 2024Updated Jan 11, 2024

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?

cpp
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