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.

C67x ADD and SUB instructions issue

The ADD or SUB instruction does not work when the same unit is used for the instructions and when there is NOP 2 between instructions. I can see the issue on C6748 and C6713.

For example:

06B4F218            ADDSP.L1X     A7,B13,A13
00002000            NOP           2
060440D8            SUB.L1        2,A1,A12

06B4F23A            SUBSP.L2X     B7,A13,B13
00002000            NOP           2
0604805A            ADD.L2        4,B1,B12

Is there any error in these codes?

If the instructions are successive (there is not NOP) or there is NOP except 2 cycles between the instructions, it works fine. It seems not to work only when 3 cycles passed after the ADDSP or SUBSP instruction.

For the details of this isuue, please see this post: http://e2e.ti.com/support/dsp/omap_applications_processors/f/42/t/441181

Best regards,

Daisuke