public boolean isResultReg(int reg) {
    return result != null && result.getReg() == reg;
  }
Returns whether or not the specified reg is the result reg.

@param reg register to test
@return true if there is a result and it is stored in the specified register
android/android_framework/dex-maker/src/main/java/com/android/dx/ssa/SsaInsn.java