https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96606
Bug ID: 96606 Summary: Shift operator not working correctly Product: gcc Version: 10.1.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gcc-bugzilla at ryuar dot in Target Milestone: --- Created attachment 49058 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49058&action=edit source code. Hello. The shift operator doesn't work correctly in some situations. Please check the attached file. after compiling with `gcc KISA_SEED_ECB.c`, The output below is shown. 9292920F 73870FC4 05D1ED04 182F3919 A = 9292920F >> 8 = C4929292 B = 73870FC4 >> 8 = 0F73870F I think the correct operation result is 9292920F 73870FC4 05D1ED04 182F3919 A = 9292920F >> 8 = 00929292 B = 73870FC4 >> 8 = 0073870F There seems to be a problem between line 353 and line 453. Please let me know if you think I'm mistaken.