Changeset 2698 for proto/Compiler


Ignore:
Timestamp:
Nov 27, 2012, 8:09:29 AM (6 years ago)
Author:
cameron
Message:

Fixes for advance_n support in experimental mode

Location:
proto/Compiler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • proto/Compiler/CCGO.py

    r2697 r2698  
    112112        adv_index = self.advIndex[operation_no - self.operation_offset]
    113113        cq_index = adv_index + self.carry_count
    114         return [ast.Assign([ast.Subscript(self.CarryGroupAtt('cq'), ast.Index(ast.Num(cq_index)), ast.Store())], adv_out_expr)]
    115 #                          mkCall("bitblock::srli<127>", [carry_out_expr]))]
     114        return [ast.Assign([ast.Subscript(self.CarryGroupAtt('cq'), ast.Index(ast.Num(cq_index)), ast.Store())],
     115                           mkCall("bitblock::srli<64>", [adv_out_expr]))]
    116116    def GenerateCarryIfTest(self, block_no, ifTest):
    117117        carry_count = self.carryInfoSet.block_op_count[block_no]
  • proto/Compiler/pablo.py

    r2697 r2698  
    536536                carry_in_expr = mkCall('simd<1>::constant<0>', [])
    537537            callnode = assigNode.value
    538             pablo_routine_call = mkCall('pablo_blk_Advance<%i>' %  assigNode.value.args[1].n, [assigNode.value.args[0], carry_in_expr, assigNode.targets[0]])
     538            pablo_routine_call = mkCall('pablo_blk_Advance_n_<%i>' %  assigNode.value.args[1].n, [assigNode.value.args[0], carry_in_expr, assigNode.targets[0]])
    539539            self.last_stmt = pablo_routine_call
    540540            compiled = self.ccgo.GenerateAdvanceOutStore(self.operation_count, pablo_routine_call)
Note: See TracChangeset for help on using the changeset viewer.