[EXT_EP-10869] bitfield assign incorrectly shifting before extending for uint64_var.bf=int32_var Created: 27/Jul/22  Updated: 01/Sep/22  Resolved: 01/Sep/22

Status: Fixed
Project: Embedded Software & Tools
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Medium
Reporter: TI User Assignee: TI User
Resolution: Fixed Votes: 0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Product: Code Generation Tools
Internal ID: CODEGEN-10285
Forum URL: https://e2e.ti.com/support/tools/code-composer-studio-group/code-composer-studio---internal/f/1049/t/1120902
Found In Release: 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
Fix In Release: MSP430_20.2.8.LTS*
C2000_21.6.1.LTS*
C2000_22.6.1.LTS*
MSP430_21.6.1.LTS*
Affected Platform/Device: default
Workaround: Either change the right hand assigned value from int32 to int16 or
avoid --opt_level=1,2

 Description   

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


Generated at Sun Apr 06 18:56:29 CDT 2025 using Jira 9.12.17#9120017-sha1:aba4002bcd633f188b6a4bb5dd8a0e1f20b79ee4.