This is the mail archive of the gcc-patches@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: RFC: MIPS paired single vector support


On Tue, Aug 17, 2004 at 10:26:06PM -0700, James E Wilson wrote:
> That is a nice collection of tests.  With this many tests, we probably
> should start a gcc.dg/mips subdirectory for mips specific tests.  We
> could perhaps even add testsuite support for it, so we don't have to put
> "target mips*-*-*" in all of the files, but that is something we could
> worry about later.

I think we have a gcc.dg/target/foo/ in devo that does something like
this.  I'll have to check...

> alnv can be represented in RTL with a shift or a rotate.  Not clear if
> an unspec is the best choice for it.

Note that lshift:v2si means vector shift on two elements.  You'd
have to be sure to subreg this back to an integer mode for that.
Something ugly like

	(truncate:DI
	  (lshiftrt:TI
	    (ior:TI
	      (shift:TI
		(zero_extend:TI (reg:DI f1))
		(const_int 64))
	      (zero_extend:TI (reg:DI f2)))
	    (mult:DI
	      (and:DI (reg:DI r3) (const_int 7))
	      (const_int 8))))


r~


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