Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-10160

C2000 register load instruction, "MOVP T, SP", erroneously eliminated

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Code Generation Tools
    • CODEGEN-8244
    • Hide
      C2000_20.12.0.STS
      C2000_20.2.2.LTS
      C2000_18.12.1.LTS
      Show
      C2000_20.12.0.STS C2000_20.2.2.LTS C2000_18.12.1.LTS
    • Hide
      C2000_20.2.4.LTS*
      C2000_20.12.0.STS
      C2000_18.12.8.LTS*
      Show
      C2000_20.2.4.LTS* C2000_20.12.0.STS C2000_18.12.8.LTS*
    • 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.

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: