Incorrectly uses 32-bit wide subtract instruction for the expression: (int40_t) var1_int32_t - (int40_t) var2_int32_t

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Not Prioritized

      The attached test case has this statement ...

          result = (int40_t)a32 - (int40_t)b32;
      

      a32 and b32 are int32_t. result is int40_t. Thus, this subtraction should be 40 bits wide. However, this instruction is used ...

                 SUB     .L2     B5,B4,B5:B4
      

      That only computes a 32-bit wide result.

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

              Created:
              Updated:

                Connection: Intermediate to External PROD System
                EXTSYNC-3140 - Incorrectly uses 32-bit wide subtra...
                SYNCHRONIZED
                • Last Sync Date: