Enum Class IntNotEqualOpGen

java.lang.Object
java.lang.Enum<IntNotEqualOpGen>
ghidra.pcode.emu.jit.gen.op.IntNotEqualOpGen
All Implemented Interfaces:
BinOpGen<JitIntNotEqualOp>, IntCompareBinOpGen<JitIntNotEqualOp>, IntPredBinOpGen<JitIntNotEqualOp>, OpGen<JitIntNotEqualOp>, Serializable, Comparable<IntNotEqualOpGen>, Constable

public enum IntNotEqualOpGen extends Enum<IntNotEqualOpGen> implements IntCompareBinOpGen<JitIntNotEqualOp>
The generator for a int_notequal.

To avoid jumps, this delegates to Integer.compare(int, int), which is signed, and then masks the result.

  • Enum Constant Details

  • Method Details

    • values

      public static IntNotEqualOpGen[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static IntNotEqualOpGen valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • isSigned

      public boolean isSigned()
      Description copied from interface: BinOpGen
      Whether this operator is signed

      In many cases, the operator itself is not affected by the signedness of the operands; however, if size adjustments to the operands are needed, this can determine how those operands are extended.

      Specified by:
      isSigned in interface BinOpGen<JitIntNotEqualOp>
      Returns:
      true for signed, false if not
    • opForInt

      public <N2 extends Emitter.Next, N1 extends Emitter.Ent<N2, Types.TInt>, N0 extends Emitter.Ent<N1, Types.TInt>> Emitter<Emitter.Ent<N2,Types.TInt>> opForInt(Emitter<N0> em, JitType.IntJitType type)
      Description copied from interface: IntPredBinOpGen
      Emit the JVM bytecode to perform the operator with integer operands on the stack.
      Specified by:
      opForInt in interface IntPredBinOpGen<JitIntNotEqualOp>
      Type Parameters:
      N2 - the tail of the incoming stack
      N1 - the tail of the incoming stack including the right operand
      N0 - the incoming stack with the right and left operands on top
      Parameters:
      em - the emitter typed with the incoming stack
      type - the p-code type of the operands
      Returns:
      the emitter typed with the resulting stack, i.e., the tail with the result pushed
    • opForLong

      public <N2 extends Emitter.Next, N1 extends Emitter.Ent<N2, Types.TLong>, N0 extends Emitter.Ent<N1, Types.TLong>> Emitter<Emitter.Ent<N2,Types.TInt>> opForLong(Emitter<N0> em, JitType.LongJitType type)
      Description copied from interface: IntPredBinOpGen
      Emit the JVM bytecode to perform the operator with long operands on the stack.
      Specified by:
      opForLong in interface IntPredBinOpGen<JitIntNotEqualOp>
      Type Parameters:
      N2 - the tail of the incoming stack
      N1 - the tail of the incoming stack including the right operand
      N0 - the incoming stack with the right and left operands on top
      Parameters:
      em - the emitter typed with the incoming stack
      type - the p-code type of the operands
      Returns:
      the emitter typed with the resulting stack, i.e., the tail with the result pushed