MANTECH interview question

What is the difference between x86 assembly's "cmp" versus "test?"