https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96172
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note for aarch64 GCC produces decent code already (since GCC 9): f1(unsigned int): .LFB0: .cfi_startproc ubfx x0, x0, 16, 3 ret But the gimple level is missed ...