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.

C7000-CGT: C7000 Optimizing C/C++ Compiler User's Guide

Part Number: C7000-CGT

Tool/software:

Hi TI Support Team,

I'm using C7x C/C++ Compiler with version v4.1.0.LTS for my project.
And I'm facing one unclear point in document C7000 Optimizing C/C++ Compiler User's Guide as below:

  1. The local document ti-compiler_4_1/docs/SPRUIV4A_C7000_Optimization_Guide.pdf and the online document in https://downloads.ti.com/docs/esd/SPRUIG8/index.html are mentioning to 5.14.4 Swizzle Operators for Vectors like this:

    Those can access to an element of vector data type like access to member attribute (e.g. .s0, .s1, ...)
    .
  2. Meanwhile, another online document in https://www.ti.com/lit/ug/spruig8j/spruig8j.pdf is mentioning to a different access way:

    It accesses to an element of vector data type like accesses to member method with parenthesis (e.g. .s0().s1(), ...) 

I have tried to test both of them in current compiler version and all were compiled successfully.

So, I want to clarify some points:

Please help me to take a look that point above.

Thank Team!

  • Hi Thai,

    The corresponding expert is currently out of office.He will get back to you soon.Thank you for your patience.

    Regards

  • Hi Thai,

    Sorry for the late reply I was on leave. Thank you for your patience.

    My current compiler version is supporting both of 2 ways accessing, is it correct? Whether that support will be kept for next releases?

    From version 4.1.1.LTS, host emulation will only support access to an element of a vector data type in the form of accesses to member methods with parentheses(function style like .s0() or .lo()).

    In contrast, in CL7x, you can use both the data member style and the function style. Hope this clarifies your doubt.

    Regards,
    Sivadeep