This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Vector registers on MIPS arch


2016-04-06 1:50 GMT+03:00 David Guillen Fandos <david@davidgf.net>:
>
> Thanks again Ilya,
>
> That seems to help to solve the problem. Now I'm facing another issue.
> It seems the tree-vec-generic pass is promoting my vector operations to
> BLKmode and therefore the VECTOR_MODE_P macro evaluates to false,
> falling back to scalar mode.
> I thought I got it working for a moment when I forgot to fix the
> HARD_MODE_REGNO_OK macro that evaluated to false for vector registers.
> In that case I mange to dodge this issue but I see another issue
> regarding register allocation (obviously! :P)
>
> So the bottom line would be, how do I make sure that my "compute_type"
> is V4SF instead of BLKmode? Where does this promotion happen?

TYPE_MODE macro for vectors is actually a call to vector_type_mode.  You
should probably look at it first.  You may also check what mode_for_vector
returns for float vector in your case.

Ilya

>
> Thanks a lot!
> David


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]