From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2270 invoked by alias); 5 Dec 2017 16:18:45 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 2253 invoked by uid 89); 5 Dec 2017 16:18:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-11.9 required=5.0 tests=BAYES_00,GIT_PATCH_2,GIT_PATCH_3,SPF_HELO_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=vextract128, vextract.128, sk:movv4sf, 20160502 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 05 Dec 2017 16:18:40 +0000 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 17F0EC001F36 for ; Tue, 5 Dec 2017 16:18:39 +0000 (UTC) Received: from tucnak.zalov.cz (ovpn-116-34.ams2.redhat.com [10.36.116.34]) by smtp.corp.redhat.com (Postfix) with ESMTPS id B0CC7779D4 for ; Tue, 5 Dec 2017 16:18:38 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.15.2/8.15.2) with ESMTP id vB5GIai3026454 for ; Tue, 5 Dec 2017 17:18:36 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.15.2/8.15.2/Submit) id vB5GIZpa026453 for gcc-patches@gcc.gnu.org; Tue, 5 Dec 2017 17:18:35 +0100 Date: Tue, 05 Dec 2017 16:18:00 -0000 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] Fix avx256-unaligned* testcases (PR testsuite/83289) Message-ID: <20171205161835.GY2353@tucnak> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.7.1 (2016-10-04) X-IsSubscribed: yes X-SW-Source: 2017-12/txt/msg00232.txt.bz2 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 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