On Friday 10 October 2008 15:20:45 Andrew Whitworth wrote:

> what PASM opcodes to "<<" and "<<=" produce? are they the same opcodes
> or something different?

> > $ cat x.pir
> > .sub main :main
> >    $P0 = new 'Integer'
> >    $P0 = 1
> >    $P1 = $P0 << 3

This is shl_p_p_i.

> >    say $P1
> >    $P0 <<= 3

This is shl_p_i.

> >    say $P0
> > .end

See src/ops/math.ops for the dispatch chain for both.

-- c

Reply via email to