Domanda di colloquio di MANTECH

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