https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89213

--- Comment #5 from Michael Meissner <meissner at gcc dot gnu.org> ---
Sure I could use XXSPLTIB all of the time if I limit the optimization to ISA
3.0 (power9).  I was trying to add optimization for shift counts for 1..15 on
ISA 2.07 (power8) as well, hence using VSPLTISW for the constants that fit in
that range.

Looking at the code for ISA 2.07, I think we need to extend the code for
loading duplicated constants to consider using vspltisw/vupklsw on ISA 2.07
instead of xxspltib/vecb2d that we can use on ISA 3.0.  I think I missed that
the last time I was updating the code.

Reply via email to