def adjust_vd_nonzero_vs2_rs1(aInstruction): operand_adjustor = VectorOperandAdjustor(aInstruction) operand_adjustor.set_vd_nonzero() operand_adjustor.set_vs2() operand_adjustor.set_rs1_int() return True
def adjust_vd_nonzero_vs2_simm5(aInstruction): operand_adjustor = VectorOperandAdjustor(aInstruction) operand_adjustor.set_vd_nonzero() operand_adjustor.set_vs2() operand_adjustor.set_imm('simm5', 'simm5', True) return True