[Bug c++/109750] Incorrect code generated for shifted bit field

2023-05-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109750 --- Comment #7 from Andrew Pinski --- This is also definitely a bug in MSVC and should reported to them. ICC fixed their bug already even.

[Bug c++/109750] Incorrect code generated for shifted bit field

2023-05-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109750 --- Comment #6 from Andrew Pinski --- icc version 2021.1.2 (gcc version 10.1.0 compatibility) Has the same behavior as GCC. While: icc version 19.0.0.117 (gcc version 8.2.0 compatibility) had the MSVC behavior clang has the same behavior as GCC

[Bug c++/109750] Incorrect code generated for shifted bit field

2023-05-05 Thread jim.gray at atos dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109750 --- Comment #5 from jim.gray at atos dot net --- I don't know if it makes any difference, but I ran with an older version of the Intel C++ compiler on Linux, with the results below: Good output when compiling with the Intel C++ compiler on Cent

[Bug c++/109750] Incorrect code generated for shifted bit field

2023-05-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109750 --- Comment #4 from Andrew Pinski --- (In reply to jim.gray from comment #3) > The "correct" answer is also provided by the Intel C++ compiler, > so apparently GCC is the odd one out. I think MSVC is the odd one out really. see below. You can a

[Bug c++/109750] Incorrect code generated for shifted bit field

2023-05-05 Thread jim.gray at atos dot net via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109750 --- Comment #3 from jim.gray at atos dot net --- The "correct" answer is also provided by the Intel C++ compiler, so apparently GCC is the odd one out.

[Bug c++/109750] Incorrect code generated for shifted bit field

2023-05-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109750 Andrew Pinski changed: What|Removed |Added Resolution|--- |INVALID Status|UNCONFIRMED

[Bug c++/109750] Incorrect code generated for shifted bit field

2023-05-05 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109750 --- Comment #1 from Andrew Pinski --- ((UI64)source.sH.lower) The question is source.sH.lower promoted to int rather than the underlying type. Note clang has the same behavior as GCC here even. So I am thinking this is a bug in MSVC rather tha