Pergunta de entrevista da empresa MANTECH

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