Closed andrewchambers closed 9 years ago
https://github.com/rui314/8cc/blob/ae00b675fd2a5948cfacb3fa3daffbeb347b5e63/gen.c#L245
mov #eax, #eax is a noop, I'm less sure that there is a logic error that can be triggered with a test case.
mov #eax, #eax
I was wrong, it seems that this automatically zero's the top half of rax.
https://github.com/rui314/8cc/blob/ae00b675fd2a5948cfacb3fa3daffbeb347b5e63/gen.c#L245
mov #eax, #eax
is a noop, I'm less sure that there is a logic error that can be triggered with a test case.