public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/96606] New: Shift operator not working correctly
@ 2020-08-13 20:44 gcc-bugzilla at ryuar dot in
  2020-08-13 20:46 ` [Bug c/96606] " gcc-bugzilla at ryuar dot in
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: gcc-bugzilla at ryuar dot in @ 2020-08-13 20:44 UTC (permalink / raw)
  To: gcc-bugs

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.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2020-08-17 16:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-13 20:44 [Bug c/96606] New: Shift operator not working correctly gcc-bugzilla at ryuar dot in
2020-08-13 20:46 ` [Bug c/96606] " gcc-bugzilla at ryuar dot in
2020-08-14  5:29 ` gcc-bugzilla at ryuar dot in
2020-08-17 16:49 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).