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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Not Prioritized 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.

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

              Created:
              Updated: