Compiler generates software pipelined loop that has multiple assignment code, and is not interrupt safe

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Urgent
    • Code Generation Tools
    • CODEGEN-1441
    • Hide
      C6000_8.1.1
       C6000_8.2.0
       C6000_7.4.4
      Show
      C6000_8.1.1  C6000_8.2.0  C6000_7.4.4
    • Hide
      C6000_8.2.0
       C6000_8.1.2
       C6000_7.4.19
      Show
      C6000_8.2.0  C6000_8.1.2  C6000_7.4.19
    • If the specific code sequence causing the issue can be located in the assembly source, then a user may insert a DINT instruction in front of the multi-cycle instruction and a RINT instruction after the last delay slot of the multi-cycle instruction.
    • Hide
      The compiler will mistakenly define and use a register that is defined
      by a preceeding multi-cycle instruction while the definition of the value
      created by the multi-cycle instruction is still in the process of being
      written to that register. If an interrupt occurs between the delay slot
      definition of that register and the delay slot use of that register, then
      an incorrect value will arrive in the register for the delay slot use of
      the register.

      For example,

               MPYLI .M1X A4,B6,A5:A4
               MVK .S1 2380,A3
        || ADD .L1X A3,B8,A5

               ADD .L1 A3,A5,A9
               LDHU .D1T1 *A9,A5
               NOP 1

               ...

      In the above code, if an interrupt occurs in the delay slots of the
      MPYLI instruction, between the definition of A5 and the subsequent use
      of A5, then the value in A5 used by the second ADD instruction will be
      the value that was written to A5 by the MPYLI instruction instead of the
      first ADD instruction.
      Show
      The compiler will mistakenly define and use a register that is defined by a preceeding multi-cycle instruction while the definition of the value created by the multi-cycle instruction is still in the process of being written to that register. If an interrupt occurs between the delay slot definition of that register and the delay slot use of that register, then an incorrect value will arrive in the register for the delay slot use of the register. For example,          MPYLI .M1X A4,B6,A5:A4          MVK .S1 2380,A3   || ADD .L1X A3,B8,A5          ADD .L1 A3,A5,A9          LDHU .D1T1 *A9,A5          NOP 1          ... In the above code, if an interrupt occurs in the delay slots of the MPYLI instruction, between the definition of A5 and the subsequent use of A5, then the value in A5 used by the second ADD instruction will be the value that was written to A5 by the MPYLI instruction instead of the first ADD instruction.

      Compiler generates software pipelined loop that has multiple assignment code, and is not interrupt safe

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-633 - Compiler generates software pipelin...
                SYNCHRONIZED
                • Last Sync Date: