/** * Returns true if this value can fit in 16 bits with sign-extension. * * @return true if the sign-extended lower 16 bits are the same as * the value. */ public boolean fitsIn16Bits() { if (! fitsInInt()) { return false; } int bits = getIntBits(); return (short) bits == bits; }
/** * Returns true if this value can fit in 16 bits with sign-extension. * * @return true if the sign-extended lower 16 bits are the same as * the value. */ public boolean fitsIn16Bits() { if (! fitsInInt()) { return false; } int bits = getIntBits(); return (short) bits == bits; }
/** * Returns true if this value can fit in 16 bits with sign-extension. * * @return true if the sign-extended lower 16 bits are the same as * the value. */ public boolean fitsIn16Bits() { if (! fitsInInt()) { return false; } int bits = getIntBits(); return (short) bits == bits; }
/** * Returns true if this value can fit in 16 bits with sign-extension. * * @return true if the sign-extended lower 16 bits are the same as * the value. */ public boolean fitsIn16Bits() { if (! fitsInInt()) { return false; } int bits = getIntBits(); return (short) bits == bits; }
/** * Returns true if this value can fit in 16 bits with sign-extension. * * @return true if the sign-extended lower 16 bits are the same as * the value. */ public boolean fitsIn16Bits() { if (! fitsInInt()) { return false; } int bits = getIntBits(); return (short) bits == bits; }
/** * Returns true if this value can fit in 8 bits with sign-extension. * * @return true if the sign-extended lower 8 bits are the same as * the value. */ public boolean fitsIn8Bits() { if (! fitsInInt()) { return false; } int bits = getIntBits(); return (byte) bits == bits; } }
/** * Returns true if this value can fit in 16 bits with sign-extension. * * @return true if the sign-extended lower 16 bits are the same as * the value. */ public boolean fitsIn16Bits() { if (! fitsInInt()) { return false; } int bits = getIntBits(); return (short) bits == bits; }
/** * Returns true if this value can fit in 16 bits with sign-extension. * * @return true if the sign-extended lower 16 bits are the same as * the value. */ public boolean fitsIn16Bits() { if (! fitsInInt()) { return false; } int bits = getIntBits(); return (short) bits == bits; }
/** * Returns true if this value can fit in 8 bits with sign-extension. * * @return true if the sign-extended lower 8 bits are the same as * the value. */ public boolean fitsIn8Bits() { if (! fitsInInt()) { return false; } int bits = getIntBits(); return (byte) bits == bits; } }
/** * Returns true if this value can fit in 16 bits with sign-extension. * * @return true if the sign-extended lower 16 bits are the same as * the value. */ public boolean fitsIn16Bits() { if (! fitsInInt()) { return false; } int bits = getIntBits(); return (short) bits == bits; }
/** * Returns true if this value can fit in 8 bits with sign-extension. * * @return true if the sign-extended lower 8 bits are the same as * the value. */ public boolean fitsIn8Bits() { if (! fitsInInt()) { return false; } int bits = getIntBits(); return (byte) bits == bits; } }
/** * Returns true if this value can fit in 8 bits with sign-extension. * * @return true if the sign-extended lower 8 bits are the same as * the value. */ public boolean fitsIn8Bits() { if (! fitsInInt()) { return false; } int bits = getIntBits(); return (byte) bits == bits; } }
/** * Returns true if this value can fit in 8 bits with sign-extension. * * @return true if the sign-extended lower 8 bits are the same as * the value. */ public boolean fitsIn8Bits() { if (! fitsInInt()) { return false; } int bits = getIntBits(); return (byte) bits == bits; } }
/** * Returns true if this value can fit in 8 bits with sign-extension. * * @return true if the sign-extended lower 8 bits are the same as * the value. */ public boolean fitsIn8Bits() { if (! fitsInInt()) { return false; } int bits = getIntBits(); return (byte) bits == bits; } }
/** * Returns true if this value can fit in 8 bits with sign-extension. * * @return true if the sign-extended lower 8 bits are the same as * the value. */ public boolean fitsIn8Bits() { if (! fitsInInt()) { return false; } int bits = getIntBits(); return (byte) bits == bits; } }
/** * Returns true if this value can fit in 8 bits with sign-extension. * * @return true if the sign-extended lower 8 bits are the same as * the value. */ public boolean fitsIn8Bits() { if (! fitsInInt()) { return false; } int bits = getIntBits(); return (byte) bits == bits; } }
/** {@inheritDoc} */ @Override public boolean isCompatible(DalvInsn insn) { RegisterSpecList regs = insn.getRegisters(); if (!((insn instanceof CstInsn) && (regs.size() == 1) && unsignedFitsInByte(regs.get(0).getReg()))) { return false; } CstInsn ci = (CstInsn) insn; Constant cst = ci.getConstant(); if (!(cst instanceof CstLiteralBits)) { return false; } return ((CstLiteralBits) cst).fitsInInt(); }
/** {@inheritDoc} */ @Override public boolean isCompatible(DalvInsn insn) { RegisterSpecList regs = insn.getRegisters(); if (!((insn instanceof CstInsn) && (regs.size() == 1) && unsignedFitsInByte(regs.get(0).getReg()))) { return false; } CstInsn ci = (CstInsn) insn; Constant cst = ci.getConstant(); if (!(cst instanceof CstLiteralBits)) { return false; } return ((CstLiteralBits) cst).fitsInInt(); }
/** {@inheritDoc} */ @Override public boolean isCompatible(DalvInsn insn) { RegisterSpecList regs = insn.getRegisters(); if (!((insn instanceof CstInsn) && (regs.size() == 1) && unsignedFitsInByte(regs.get(0).getReg()))) { return false; } CstInsn ci = (CstInsn) insn; Constant cst = ci.getConstant(); if (!(cst instanceof CstLiteralBits)) { return false; } return ((CstLiteralBits) cst).fitsInInt(); }
/** {@inheritDoc} */ @Override public boolean isCompatible(DalvInsn insn) { RegisterSpecList regs = insn.getRegisters(); if (!((insn instanceof CstInsn) && (regs.size() == 1) && unsignedFitsInByte(regs.get(0).getReg()))) { return false; } CstInsn ci = (CstInsn) insn; Constant cst = ci.getConstant(); if (!(cst instanceof CstLiteralBits)) { return false; } return ((CstLiteralBits) cst).fitsInInt(); }