[Bug target/107403] uint64_t bitfield operation is mishandled

2022-10-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107403 --- Comment #4 from Andrew Pinski --- See https://gcc.gnu.org/legacy-ml/gcc/2017-10/msg00192.html

[Bug target/107403] uint64_t bitfield operation is mishandled

2022-10-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107403 Andrew Pinski changed: What|Removed |Added See Also||https://gcc.gnu.org/bugzill

[Bug target/107403] uint64_t bitfield operation is mishandled

2022-10-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107403 --- Comment #2 from Andrew Pinski --- Note gcc and clang have different implementation defined behavior here too.

[Bug target/107403] uint64_t bitfield operation is mishandled

2022-10-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=107403 --- Comment #1 from Andrew Pinski --- No this is correct. i.y << 8ULL Is all done in 56bit type as the type is greater than the size of int. Note c allows this behavior while c++ does not.