The same optimization as outlined in #6 should be used for arbitrary result values to further optimize the target code.