[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Baf - dupInstructions



Patrick LAM wrote:
> Hi Tom,
> 
> 
>>Why is there only a BDup1_x1Inst and none of the '2' variants implemented ?
>>
>>You could indeed pass a LongType as one of the arguments, but I can't
>>find how to duplicate 2 Ints.
> 
> 
> Are you looking for BDup2Inst?

Nope,  I'm looking for BDup2_x1Inst, BDup1_x2Inst and BDup2_x2Inst.

If you're sure that the '2' in the above instructions stands for a Long
or Double, you can get the desired result by using BDup1_x1Inst, but if
the '2' stands for two ints, then I don't see how.

> 
> 
>>Btw, for me it is very inconvenient that you have to know the exact type
>>of the slots you are duplicating. Why can't they use the WordType and
>>the DoubleWordType of baf ?
> 
> 
> I'm not sure.  Have you tried?

Yep, I get a RuntimeException: "invalid switch case", meaning, you're
not supposed to use them.
> 
> pat
>