[Bug middle-end/113574] wrong code with shift and _BitInt(1) at any opt level

2024-01-25 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113574 Jakub Jelinek changed: What|Removed |Added Resolution|--- |FIXED Status|ASSIGNED

[Bug middle-end/113574] wrong code with shift and _BitInt(1) at any opt level

2024-01-25 Thread cvs-commit at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113574 --- Comment #5 from GCC Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:fb1b7e2fec951ba0bf4f68fac6a16929f4f63910 commit r14-8423-gfb1b7e2fec951ba0bf4f68fac6a16929f4f63910 Author: Jakub Jelinek Date: T

[Bug middle-end/113574] wrong code with shift and _BitInt(1) at any opt level

2024-01-24 Thread jakub at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113574 Jakub Jelinek changed: What|Removed |Added Assignee|unassigned at gcc dot gnu.org |jakub at gcc dot gnu.org

[Bug middle-end/113574] wrong code with shift and _BitInt(1) at any opt level

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113574 --- Comment #3 from Andrew Pinski --- Note I was thinking I might hit this with 1 sized bit field but that seems to work: ``` struct f { unsigned ub1:1; }t; void foo(unsigned short ub16) { t.ub1 = (ub16 << 2); } int main(void) { unsigned s

[Bug middle-end/113574] wrong code with shift and _BitInt(1) at any opt level

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113574 --- Comment #2 from Andrew Pinski --- convert uses TYPE_SIZE /* If shift count is less than the width of the truncated type, really shift. */ if (tree_int_cst_lt (TREE_OPERAND (expr, 1),

[Bug middle-end/113574] wrong code with shift and _BitInt(1) at any opt level

2024-01-23 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113574 Andrew Pinski changed: What|Removed |Added Last reconfirmed||2024-01-24 Ever confirmed|0