This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS320F28069: Undefined behaviour of left shift?

Part Number: TMS320F28069


Hi,

I am doing an left shift operation and it is working in rotation. (Using compiler version TI v16.9.4.LTS)

temp1 = (Uint32)(0x3UL << 56);

I am getting result this.

temp1 = 50331648 (00000011000000000000000000000000b)

Result should be this

temp1 = 0

Please explain this undefined behavior of left shift.

Regards,

Shubham