Changeset 2715 for proto


Ignore:
Timestamp:
Dec 2, 2012, 7:22:30 PM (7 years ago)
Author:
cameron
Message:

Raise error on use of subtraction or addition

File:
1 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/pablo.py

    r2708 r2715  
    501501        carry_args = [mkCall('simd<1>::constant<0>', []), ast.Num(self.current_carry)]
    502502    if isinstance(exprnode.op, ast.Sub):
     503      assert False, "Subtraction no longer supported - use pablo.SpanUpTo ..."
    503504      #CARRYSET
    504505      rtn = self.carryvar.id + "." + "BitBlock_sub_ci_co"
     
    507508      return c
    508509    elif isinstance(exprnode.op, ast.Add):
     510      assert False, "Addition no longer supported - use pablo.Scan ..."
    509511      #CARRYSET
    510512      rtn = self.carryvar.id + "." + "BitBlock_add_ci_co"
Note: See TracChangeset for help on using the changeset viewer.