This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Use of vector instructions in memmov/memset expanding
- From: Uros Bizjak <ubizjak at gmail dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: Michael Zolotukhin <michael dot v dot zolotukhin at gmail dot com>, "H.J. Lu" <hjl dot tools at gmail dot com>, Richard Guenther <richard dot guenther at gmail dot com>
- Date: Wed, 13 Jul 2011 10:48:02 +0200
- Subject: Re: Use of vector instructions in memmov/memset expanding
Hello!
> Please don't use -m32/-m64 in testcases directly.
> You should use
>
> /* { dg-do compile { target { ! ia32 } } } */
>
> for 32bit insns and
>
> /* { dg-do compile { target { ia32 } } } */
>
> for 64bit insns.
Also, there is no need to add -mtune if -march is already specified.
-mtune will follow -march.
To scan for the %xmm register, you don't have to add -dp to compile
flags. -dp will also dump pattern name to file, so unless you are
looking for specific pattern name, you should omit -dp.
Uros.