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

Signed short negation fails to sign extend properly on CLA

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium

      The CLA compiler fails to sign extend a 16-bit signed value to 32 bits before performing a negation. The expression "-(short)e" may look like a 16-bit negation, but because "int" is 32 bits on CLA, the expression "(short)e" must be converted to 32 bit "int" before the negation can be performed.

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

              Created:
              Updated:
              Resolved: