Skip to content

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

@albertethon

Description

@albertethon

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions