Changeset 460 for proto


Ignore:
Timestamp:
Jul 10, 2010, 12:32:56 PM (9 years ago)
Author:
cameron
Message:

Generate carry_or

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/py2bitexpr.py

    r456 r460  
    15051505        elif s[0].RHS.data_type == "int":
    15061506            if isinstance(s[0].RHS, bitexpr.Or):
    1507                 code += s[0].RHS.operand1.varname
    1508                 code += '|'
    1509                 code += s[0].RHS.operand2.varname
    1510                 code += ";\n"
     1507                code += "carry_or(%s, %s);\n" % (s[0].RHS.operand1.varname, s[0].RHS.operand2.varname)
    15111508            elif isinstance(s[0].RHS, bitexpr.FalseLiteral):
    15121509                code += "Carry0;\n"
Note: See TracChangeset for help on using the changeset viewer.