[EXT_EP-10319] CLA float to short cast is incorrect Created: 05/Apr/21 Updated: 27/May/21 Resolved: 05/Apr/21 |
|
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-8488 |
Found In Release: | C2000_21.6.0.B1 C2000_18.12.0.LTS C2000_20.2.0.LTS |
Fix In Release: | C2000_20.2.5.LTS C2000_18.12.8.LTS C2000_21.6.0.LTS |
Affected Platform/Device: | default |
Description |
The CLA has hardware instructions that cast between float and short types. Because such hardware instructions are uncommon, the compiler was using a generic transformation inserting an integer cast in between the float to short cast. This was preventing matching the correct cast instruction. Furthermore, in the case of the submitted test case, the instruction sequence generated was incorrect and resulted in an incorrect value. |