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

bitfield assign incorrectly shifting before extending for uint64_var.bf=int32_var

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • Code Generation Tools
    • CODEGEN-10285
    • Hide
      MSP430_4.4.0
      MSP430_18.1.0.LTS
      C2000_22.6.0.LTS
      MSP430_20.2.0.LTS
      MSP430_21.6.0.LTS
      C2000_21.6.0.LTS
      MSP430_15.12.0.LTS
      MSP430_18.12.0.LTS
      MSP430_16.9.0.LTS
      C2000_18.12.0.LTS
      C2000_20.2.0.LTS
      Show
      MSP430_4.4.0 MSP430_18.1.0.LTS C2000_22.6.0.LTS MSP430_20.2.0.LTS MSP430_21.6.0.LTS C2000_21.6.0.LTS MSP430_15.12.0.LTS MSP430_18.12.0.LTS MSP430_16.9.0.LTS C2000_18.12.0.LTS C2000_20.2.0.LTS
    • Hide
      MSP430_20.2.8.LTS*
      C2000_21.6.1.LTS*
      C2000_22.6.1.LTS*
      MSP430_21.6.1.LTS*
      Show
      MSP430_20.2.8.LTS* C2000_21.6.1.LTS* C2000_22.6.1.LTS* MSP430_21.6.1.LTS*
    • default
    • Hide
      Either change the right hand assigned value from int32 to int16 or
      avoid --opt_level=1,2
      Show
      Either change the right hand assigned value from int32 to int16 or avoid --opt_level=1,2

      Generated code for below bitfield assign was incorrectly shifting
      before extending the int32 value to be assigned:
      uint64_var.bf = int32_var

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

              Created:
              Updated:
              Resolved: