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

CLA float to short cast is incorrect

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Code Generation Tools
    • CODEGEN-8488
    • Hide
      C2000_21.6.0.B1
      C2000_18.12.0.LTS
      C2000_20.2.0.LTS
      Show
      C2000_21.6.0.B1 C2000_18.12.0.LTS C2000_20.2.0.LTS
    • Hide
      C2000_20.2.5.LTS
      C2000_18.12.8.LTS
      C2000_21.6.0.LTS
      Show
      C2000_20.2.5.LTS C2000_18.12.8.LTS C2000_21.6.0.LTS
    • default

      The CLA has hardware instructions that cast between float and short types. Because such hardware instructions are uncommon, the compiler was using a generic transformation inserting an integer cast in between the float to short cast. This was preventing matching the correct cast instruction. Furthermore, in the case of the submitted test case, the instruction sequence generated was incorrect and resulted in an incorrect value.

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

              Created:
              Updated:
              Resolved: