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

struct field in register is not sign-extended to 32 bits before 32-bit compare

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Fixed
    • Priority: High
    • Resolution: Fixed
    • Product:
      Code Generation Tools
    • Internal ID:
      CODEGEN-1271
    • OldID:
      SDSCM00052864
    • Found In Release:
      Hide
      C6000_8.1.0
       ARM_15.12.0.LTS
       ARM_5.2.0
      Show
      C6000_8.1.0  ARM_15.12.0.LTS  ARM_5.2.0
    • Fix In Release:
      Hide
      ARM_5.2.8
       C6000_8.1.2
       ARM_15.12.4.LTS
      Show
      ARM_5.2.8  C6000_8.1.2  ARM_15.12.4.LTS
    • Workaround:
      Declare the local struct as volatile
    • Release Notes:
      Hide
      The compiler can place small structs in registers for fast access. In this case, the compiler fails to sign-extend a 16-bit struct member to 32-bits before a 32-bit comparison. This can happen for structs 32 bits or less, with any integer field 16 bits or less.
      Show
      The compiler can place small structs in registers for fast access. In this case, the compiler fails to sign-extend a 16-bit struct member to 32-bits before a 32-bit comparison. This can happen for structs 32 bits or less, with any integer field 16 bits or less.

      Description

      struct field in register is not sign-extended to 32 bits before 32-bit compare

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: