The point of test %eax %eax [duplicate]

This question already has answers here: Closed 9 years ago. Possible Duplicate: x86 Assembly – ‘testl’ eax against eax? I’m very very new to assembly language programming, and I’m currently trying to read the assembly language generated from a binary. I’ve run across test %eax,%eax or test %rdi, %rdi, etc. etc. I’m very confused as … Read more