On Wed, Mar 18, 2020 at 8:34 PM Segher Boessenkool <seg...@kernel.crashing.org> wrote: > > On Wed, Mar 18, 2020 at 10:12:00PM +0800, Kewen.Lin wrote: > > > Btw, why not implement the neccessary vector init patterns? > > > > Power doesn't support 64bit vector size, it looks a bit hacky and > > confusing to introduce this kind of mode just for some optab requirement, > > but I admit the optab hack can immediately make it work. :) > > But it opens up all kinds of other problems. To begin with, how is a > short vector mapped to a "real" vector? > > We don't have ops on short integer types, either, for similar reasons.
How do you represent two vector input shuffles? The usual way is (vec_select (vec_concat ...))) which requires a _larger_ vector mode for the concat. Which you don't have ops on either. It's also not different to those large integer modes you need but do not have ops on. So I think the argument is somewhat moot, but yes. Richard. > > Segher