Tool/software: TI C/C++ Compiler
So, in sdowp with bug ID CODEGEN-6581, it says it is resolved, however, the bug still occurse in the 18.12.3 or 19.6 release of the ti compiler.
The workaround was to not use -o0 or -o1.
In the end it is still a bug, which was not fixed correctly.