I have a Xtensa compiler issue that the compilation for switch case would be optimized in some patterns and leads to unexpected result. I cross-checked the assembly code and found that such compiler optimization seems to be similar to the tree-switch-conversion feature in GCC compiler
Unfortunately I don't find any similar compiler option(like -fno-tree-switch-conversion) in Xtensa compiler(XCC) to enable/disable such feature and such feature seems like enabled in XCC by default even if I'm using -O0 for the least optimization.
I'm wondering if there's any possible solution to permanently disable such feature in XCC?
PS: The release version of XCC compiler I'm using is RD-2012.5
As a moderator of some of the other forums and the person who approved your post, to answer your question about why this was marked as potentially spam, it's because your post had a non-Cadence URL link in it. Obviously your post isn't spam, but this is just a way of cutting down the large amounts of noise we were getting with link spammers.
I see that you've also filed the same question as a support ticket via support.cadence.com so I'll let the dedicated Tensilica support team respond to you via that channel.
Note that your compiler version is 10 years old, you should consider using a newer and supported version!