Use more efficient test for one value in a ConstantInt.