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

Incorrect computation of condition test involving bool value

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: High High
    • Code Generation Tools
    • CODEGEN-8736
    • Hide
      MSP430_18.12.8.LTS
      C2000_20.2.5.LTS
      C2000_18.12.8.LTS
      ARM_20.2.5.LTS
      ARM_18.12.8.LTS
      C7000_1.4.2.LTS
      PRU_2.3.4*
      MSP430_20.2.5.LTS
      C6000_8.3.9
      Show
      MSP430_18.12.8.LTS C2000_20.2.5.LTS C2000_18.12.8.LTS ARM_20.2.5.LTS ARM_18.12.8.LTS C7000_1.4.2.LTS PRU_2.3.4* MSP430_20.2.5.LTS C6000_8.3.9
    • Hide
      MSP430_18.12.8.LTS
      C2000_20.2.5.LTS
      C2000_18.12.8.LTS
      ARM_20.2.5.LTS
      ARM_18.12.8.LTS
      C7000_1.4.3.LTS*
      PRU_2.3.4*
      MSP430_20.2.5.LTS
      C6000_8.3.10
      Show
      MSP430_18.12.8.LTS C2000_20.2.5.LTS C2000_18.12.8.LTS ARM_20.2.5.LTS ARM_18.12.8.LTS C7000_1.4.3.LTS* PRU_2.3.4* MSP430_20.2.5.LTS C6000_8.3.10
    • default

      Given

      _Bool test(_Bool is_cos, float angle)

      { _Bool rv = is_cos ? 0 : (angle < 0.0F); return rv; }

      The optimizer incorrectly computes rv when is_cos is true. This bug will probably only affect conditional expressions using the C++ type "bool" or the C99 type "_Bool."

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

              Created:
              Updated:
              Resolved: