APAR status
Closed as Permanent restriction.
Error description
Quintus defect 221289 I used the shift operator in the following example: LSHL(U32(1),18) U32 is a subroutine used to be able to have an explicit typecast in generated code. The generated code is the following: TEST_VAR = ((TYPE_U8)(u32)(1)) ?? 18; The problem ist, that an additional, wrong typecast to TYPE_U8 is generated. This makes problems because it I need to define the type of the shifted variable explicitly. Just using the type of the variable which is shifted is not sufficient, because often the type must be expanded. before. Doing this explicitly using another variable will cause a lot of overhead in my code and is therefore not possible. The code for the shift operation shall be generated WITHOUT the additional typecast, so that the user can specify the typecast on its own.
Local fix
fixed in build 232233
Problem summary
generated code for logical shift operator is wrong
Problem conclusion
Statemate MicroC Code Generator was enhanced to support function call inside a shifting operator expression
Temporary fix
Comments
APAR Information
APAR number
PK80425
Reported component name
TLOGIC STATEMAT
Reported component ID
5724V76SM
Reported release
450
Status
CLOSED PRS
PE
NoPE
HIPER
NoHIPER
Special Attention
NoSpecatt
Submitted date
2009-02-11
Closed date
2010-03-22
Last modified date
2010-03-22
APAR is sysrouted FROM one or more of the following:
APAR is sysrouted TO one or more of the following:
Fix information
Applicable component levels
[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSYQ4J","label":"Rational Statemate"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"4.5","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]
Document Information
Modified date:
22 March 2010