https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118288
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Looks like the const_int is not signed extended like it should have been. I suspect this is coming from the expanders. Maybe even in the x86 backend expanders.