Update compact_memory_operand_p function to meet the ldh_s.x needs