This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: MIPS paired single vector support
- From: Richard Henderson <rth at redhat dot com>
- To: James E Wilson <wilson at specifixinc dot com>
- Cc: "Fu, Chao-Ying" <fu at mips dot com>, gcc-patches at gcc dot gnu dot org, David Ung <davidu at mips dot com>, Nigel Stephens <nigel at mips dot com>, "Uhler, Mike" <uhler at mercury dot mips dot com>, "Thekkath, Radhika" <radhika at mercury dot mips dot com>
- Date: Wed, 18 Aug 2004 02:13:36 -0700
- Subject: Re: RFC: MIPS paired single vector support
- References: <3CB54817FDF733459B230DD27C690CEC041BFD@Exchange.MIPS.COM> <1092806766.15691.136.camel@aretha.corp.specifixinc.com>
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~