https://gcc.gnu.org/bugzilla/show_bug.cgi?id=27663
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Last reconfirmed|2007-07-25 17:29:16 |2023-5-30 Component|middle-end |target Known to fail| |5.1.0 --- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Starting around GCC 5 or so, a call to __bswapsi2 is done here. my bet is if avr target adds a bswapsi2 pattern (which either expands or splits into the best moves), this will be optimized correctly.