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: [PATCH, i386 tests] New tests to check vectorization for AVX2 insns.


Thanks, done.

Anything else?

K

On Fri, Oct 14, 2011 at 3:53 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> On Fri, Oct 14, 2011 at 03:13:45PM +0400, Kirill Yukhin wrote:
>
> --- /dev/null
> +++ b/gcc/testsuite/gcc.target/i386/avx2-vpaddb-3.c
> @@ -0,0 +1,49 @@
> +/* { dg-do run } */
> +/* { dg-options "-mavx2 -O2 -ftree-vectorize -save-temps" } */
> +/* { dg-require-effective-target avx2 } */
> +
> ...
> +
> +/* { dg-final { scan-assembler-times "vpaddb\[ \\t\]+\[^\n\]*%ymm\[0-9\]" 1 } } */
>
> You need
> /* { dg-final { cleanup-saved-temps } } */
> in all the testcases compiled with -save-temps.
>
> ? ? ? ?Jakub
>

Attachment: avx2.vect-2.tests.gcc.patch
Description: Binary data


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