This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320C6000 Optimizing Compiler v7.6 (spru187v); error



Hello all,

The description of the _shr2 & _shru2 intrinsics appears to be incorrect.

in the Optimizing Compiler guide (spru187v.pdf) the description is:

int _shr2 (int src1, unsigned src2);

unsigned shru2 (unsigned src1, unsigned src2);

For each 16-bit quantity in src2, the quantity is arithmetically or
logically shifted right by src1 number of bits. src2 can contain signed
or unsigned values.

The code (CCS6, Compiler TIv7.4.1) appears to reverse the order (shift value in src2, 16bit packed vales in src1).

Regards

  • Thank you for submitting this issue.  I can reproduce your results.  Your description appears to be accurate.  I filed SDSCM00051124 in the SDOWP system to have this investigated.  Feel free to follow it with the SDOWP link below in my signature.

    Thanks and regards,

    -George