https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119702
--- Comment #22 from Avinash Jayakar <avinashd at linux dot ibm.com> --- Created attachment 62096 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=62096&action=edit Proposed patch for vector left shifts for powerpc I have modified define_expand for vashl. Previously for operand 2 (the value to be shifted), had a predicate "vint_operand", which meant the contant vectors would be copied to a register in the maybe_legitimize_operand function in optabs.cc. I changed this constraint to "general_operand", and for constant vectors, use add if shift value is 1, else proceed as earlier.