Bug 875910 - Optimize x86 and x64 encodings for test and cmp with immediates. r=sstangl