1. A processor comprising: a compression engine comprising: a hardware string matcher to string match various substrings of an input stream and to generate an intermediate token format of respective substring matches; a processor core to execute first instructions as an entropy code generator to generate entropy codes from frequencies of tokens corresponding to respective substring matches; and an entropy code encoder to encode, from the entropy codes, a final compressed output of the input stream; and a decompression engine coupled to the compression engine, the decompression engine to generate a first output from the intermediate token format and a second output from a partially decompressed output of the final compressed output, wherein the first output and the second output being indicative of error checks of the input stream as the input stream is compressed.