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:
- 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, ...)
. - 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:
- Which accessing is correct for my current compiler version v4.1.0.LTS? Using .s0 or .s0() ?
- Why does the document C7000 Optimizing C/C++ Compiler User's Guide have above different with each location?
- My current compiler version is supporting both of 2 ways accessing, is it correct? Whether that support will be kept for next releases?
- In Readme of C7000 4.1.0.LTS https://software-dl.ti.com/codegen/esd/cgt_public_sw/C7000/4.1.0.LTS/README.html#function-style-vector-swizzles-compatibility-break, it mentions that:
Is that a reason lead to cl7x compiler need to support both of accessing ways?
Please help me to take a look that point above.
Thank Team!