This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Special intrinsic for the swap in vector (Helium)

Hi,


I have looked through all the intrinsics for the Helium and can not find what would swap the values in the vector. As I understand it, this can only be done by loading/storing into/from memory. 
Can you please tell me, am I right, or is there a special intrinsic for the swap?


Regards,
Yevhenii

Parents
  • Saw these also, but they act on elements, not vectors right?
    You cannot swap elements inside a vector with a single instruction, right?
    (Guess that's what the OP asks for.)

    So a vector with:

    11223344 | 55667788 | 99aabbcc | ddeeff00

    becomes after a (which?) REVx

    44332211 | 88776655 | ccbbaa99 | 00ffeedd

    and not

    ddeeff00 | 99aabbcc | 55667788 | 11223344

Reply
  • Saw these also, but they act on elements, not vectors right?
    You cannot swap elements inside a vector with a single instruction, right?
    (Guess that's what the OP asks for.)

    So a vector with:

    11223344 | 55667788 | 99aabbcc | ddeeff00

    becomes after a (which?) REVx

    44332211 | 88776655 | ccbbaa99 | 00ffeedd

    and not

    ddeeff00 | 99aabbcc | 55667788 | 11223344

Children