FIX #2388: check that the operand fits before using the 'test' opcode