Example #1
0
        public List <IMOperation> Generate(IMGeneratorEnv env, IMOperand target, IMOperand operand1, IMOperand operand2)
        {
            var result = new List <IMOperation>();

            if (_negate)
            {
                result.Add(IMOperation.SetNE(target, operand1, operand2));
            }
            else
            {
                result.Add(IMOperation.SetE(target, operand1, operand2));
            }

            return(result);
        }