-
Bug
-
Resolution: Fixed
-
Medium
-
Code Generation Tools
-
CODEGEN-8244
-
-
-
default
The C2000 "MOVP T, reg" instruction both loads the contents of the register denoted by 'reg' into the T register and loads the contents of the P register into the ACC register. The compiler inserts this instruction in place of two separate load instructions when the opportunity arises. However, when 'reg' is the SP register, the instruction has been accidentally eliminated subsequently from the generated code. This would result in missing or incorrect contents in both the T register and the ACC register. This error only arises if reg is SP.