[Bug tree-optimization/96172] Failure to optimize direct assignment to bitfield through shifts

2022-12-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96172

--- Comment #2 from Andrew Pinski  ---
Note for aarch64 GCC produces decent code already (since GCC 9):
f1(unsigned int):
.LFB0:
.cfi_startproc
ubfxx0, x0, 16, 3
ret

But the gimple level is missed ...

[Bug tree-optimization/96172] Failure to optimize direct assignment to bitfield through shifts

2022-12-15 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96172

Andrew Pinski  changed:

   What|Removed |Added

 Ever confirmed|0   |1
   Last reconfirmed||2022-12-15
 Status|UNCONFIRMED |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |pinskia at gcc dot 
gnu.org

--- Comment #1 from Andrew Pinski  ---
I think I have patches for this but won't get to it until next year.

[Bug tree-optimization/96172] Failure to optimize direct assignment to bitfield through shifts

2021-04-25 Thread pinskia at gcc dot gnu.org via Gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96172

Andrew Pinski  changed:

   What|Removed |Added

   Severity|normal  |enhancement