public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Jakub Jelinek <jakub@redhat.com>
To: gcc-patches@gcc.gnu.org
Subject: [committed] Fix avx256-unaligned* testcases (PR testsuite/83289)
Date: Tue, 05 Dec 2017 16:18:00 -0000	[thread overview]
Message-ID: <20171205161835.GY2353@tucnak> (raw)

Hi!

As Segher mentioned, the -dp printed alternative numbers used to be one
based, but now are zero based.  This adjusts all the -dp testcases that
have /[1-9] regexps.

Tested on x86_64-linux and i686-linux, committed to trunk.

2017-12-05  Jakub Jelinek  <jakub@redhat.com>

	PR testsuite/83289
	* gcc.target/i386/avx256-unaligned-load-1.c: Adjust for -dp
	alternative numbers being 0 based instead of former 1 based.
	* gcc.target/i386/avx256-unaligned-store-1.c: Likewise.
	* gcc.target/i386/avx256-unaligned-store-2.c: Likewise.
	* gcc.target/i386/avx256-unaligned-store-3.c: Likewise.
	* gcc.target/i386/avx256-unaligned-store-4.c: Likewise.
	* gcc.target/i386/sse2-init-v2di-2.c: Likewise.

--- gcc/testsuite/gcc.target/i386/avx256-unaligned-load-1.c.jj	2016-05-22 12:20:08.000000000 +0200
+++ gcc/testsuite/gcc.target/i386/avx256-unaligned-load-1.c	2017-12-05 17:10:59.760515267 +0100
@@ -14,6 +14,6 @@ avx_test (void)
     c[i] = a[i] * b[i+3];
 }
 
-/* { dg-final { scan-assembler-not "vmovups\[^\n\r]*movv8sf_internal/3" } } */
-/* { dg-final { scan-assembler "movv4sf_internal/3" } } */
+/* { dg-final { scan-assembler-not "vmovups\[^\n\r]*movv8sf_internal/2" } } */
+/* { dg-final { scan-assembler "movv4sf_internal/2" } } */
 /* { dg-final { scan-assembler "vinsertf128" } } */
--- gcc/testsuite/gcc.target/i386/avx256-unaligned-store-1.c.jj	2016-05-22 12:20:29.000000000 +0200
+++ gcc/testsuite/gcc.target/i386/avx256-unaligned-store-1.c	2017-12-05 17:08:43.835187190 +0100
@@ -17,6 +17,6 @@ avx_test (void)
     d[i] = c[i] * 20.0;
 }
 
-/* { dg-final { scan-assembler-not "vmovups.*movv8sf_internal/4" } } */
-/* { dg-final { scan-assembler "vmovups.*movv4sf_internal/4" } } */
+/* { dg-final { scan-assembler-not "vmovups.*movv8sf_internal/3" } } */
+/* { dg-final { scan-assembler "vmovups.*movv4sf_internal/3" } } */
 /* { dg-final { scan-assembler "vextractf128" } } */
--- gcc/testsuite/gcc.target/i386/avx256-unaligned-store-2.c.jj	2016-05-02 09:22:07.000000000 +0200
+++ gcc/testsuite/gcc.target/i386/avx256-unaligned-store-2.c	2017-12-05 17:08:58.182010720 +0100
@@ -23,6 +23,6 @@ avx_test (void)
     }
 }
 
-/* { dg-final { scan-assembler-not "vmovups.*movv32qi_internal/4" } } */
-/* { dg-final { scan-assembler "vmovups.*movv16qi_internal/4" } } */
+/* { dg-final { scan-assembler-not "vmovups.*movv32qi_internal/3" } } */
+/* { dg-final { scan-assembler "vmovups.*movv16qi_internal/3" } } */
 /* { dg-final { scan-assembler "vextract.128" } } */
--- gcc/testsuite/gcc.target/i386/avx256-unaligned-store-3.c.jj	2016-05-22 12:20:05.000000000 +0200
+++ gcc/testsuite/gcc.target/i386/avx256-unaligned-store-3.c	2017-12-05 17:09:12.409835713 +0100
@@ -17,6 +17,6 @@ avx_test (void)
     d[i] = c[i] * 20.0;
 }
 
-/* { dg-final { scan-assembler-not "vmovups.*movv4df_internal/4" } } */
-/* { dg-final { scan-assembler "vmovups.*movv2df_internal/4" } } */
+/* { dg-final { scan-assembler-not "vmovups.*movv4df_internal/3" } } */
+/* { dg-final { scan-assembler "vmovups.*movv2df_internal/3" } } */
 /* { dg-final { scan-assembler "vextractf128" } } */
--- gcc/testsuite/gcc.target/i386/avx256-unaligned-store-4.c.jj	2016-05-22 12:20:09.000000000 +0200
+++ gcc/testsuite/gcc.target/i386/avx256-unaligned-store-4.c	2017-12-05 17:09:23.989693278 +0100
@@ -14,6 +14,6 @@ avx_test (void)
     b[i+3] = a[i] * c[i];
 }
 
-/* { dg-final { scan-assembler "vmovups.*movv8sf_internal/4" } } */
-/* { dg-final { scan-assembler-not "movups.*movv4sf_internal/4" } } */
+/* { dg-final { scan-assembler "vmovups.*movv8sf_internal/3" } } */
+/* { dg-final { scan-assembler-not "movups.*movv4sf_internal/3" } } */
 /* { dg-final { scan-assembler-not "vextractf128" } } */
--- gcc/testsuite/gcc.target/i386/sse2-init-v2di-2.c.jj	2016-06-02 11:43:06.000000000 +0200
+++ gcc/testsuite/gcc.target/i386/sse2-init-v2di-2.c	2017-12-05 17:07:46.449893047 +0100
@@ -10,4 +10,4 @@ test (long long b)
   return _mm_cvtsi64_si128 (b); 
 }
 
-/* { dg-final { scan-assembler-times "vec_concatv2di/5" 1 } } */
+/* { dg-final { scan-assembler-times "vec_concatv2di/4" 1 } } */

	Jakub

                 reply	other threads:[~2017-12-05 16:18 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20171205161835.GY2353@tucnak \
    --to=jakub@redhat.com \
    --cc=gcc-patches@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).