From patchwork Thu May 4 08:04:23 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom de Vries X-Patchwork-Id: 758410 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3wJSHP0S1pz9rxl for ; Thu, 4 May 2017 18:04:46 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="CQWwzVop"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; q=dns; s=default; b=fBLyq7eSQH7rjGZmE2rhFCkE5f6y3wu6Nfq2CrwmyDlyepvmW0 nnbWrCFMAvaLiGqo3ArK1xXTTbMUaSt9dLXEwmLyTnaClUs0LtEy/9Zee/Nha45X +NnJuii4LY9KqB7mgohyOmyLv0QGRt8FJueHTb5JRTdft1Fj4OTQKxsr0= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:to :from:subject:message-id:date:mime-version:content-type; s= default; bh=8XVvQBnkHZ5rd2eh0bNGmP5S14Y=; b=CQWwzVopgkIj7vWUj+EA cbxHcLG4dTaqOHeFQQcxkT4tNoTLmECrVU5B9tliP2fyrVW9YTatnSmiGghydy99 55YkIB/536S2sb12knz7674/ytSWsmIMW+9NjqRlN4A0LQnHHraS6jXTQMPd7PG2 ksRe3pRXR7HQCvoOYp/Ksjk= Received: (qmail 49252 invoked by alias); 4 May 2017 08:04:36 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 49228 invoked by uid 89); 4 May 2017 08:04:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.4 required=5.0 tests=AWL, BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RCVD_IN_DNSWL_NONE, SPF_PASS, URIBL_RED autolearn=ham version=3.3.2 spammy= X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 04 May 2017 08:04:31 +0000 Received: from nat-ies.mentorg.com ([192.94.31.2] helo=SVR-IES-MBX-04.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1d6BkV-0001m7-97 from Tom_deVries@mentor.com for gcc-patches@gcc.gnu.org; Thu, 04 May 2017 01:04:31 -0700 Received: from [127.0.0.1] (137.202.0.87) by SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Thu, 4 May 2017 09:04:27 +0100 To: GCC Patches From: Tom de Vries Subject: [testsuite, committed] Replace absolute line numbers in gcc.target/i386 Message-ID: <9281dae8-2dfb-2012-a294-330d9a25d5fc@mentor.com> Date: Thu, 4 May 2017 10:04:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 MIME-Version: 1.0 X-ClientProxiedBy: svr-ies-mbx-01.mgc.mentorg.com (139.181.222.1) To SVR-IES-MBX-04.mgc.mentorg.com (139.181.222.4) Hi, this patch replaces absolute line numbers in gcc.target/i386. [ Ignoring avx-vtestpd* and avx-vtestps* for the moment. For those I've filed PR80606 - "avx-vtestpd-1.c contains outdated line number" ( https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80606 ) ]. Thanks, - Tom Replace absolute line numbers in gcc.target/i386 2017-05-03 Tom de Vries PR testsuite/80557 * gcc.target/i386/pr57655.c: Replace absolute line numbers. * gcc.target/i386/pr68657.c: Same. * gcc.target/i386/pr69255-1.c: Same. * gcc.target/i386/pr69255-2.c: Same. * gcc.target/i386/pr69255-3.c: Same. --- gcc/testsuite/gcc.target/i386/pr57655.c | 6 ++---- gcc/testsuite/gcc.target/i386/pr68657.c | 2 +- gcc/testsuite/gcc.target/i386/pr69255-1.c | 5 ++--- gcc/testsuite/gcc.target/i386/pr69255-2.c | 5 ++--- gcc/testsuite/gcc.target/i386/pr69255-3.c | 5 ++--- 5 files changed, 9 insertions(+), 14 deletions(-) diff --git a/gcc/testsuite/gcc.target/i386/pr57655.c b/gcc/testsuite/gcc.target/i386/pr57655.c index 586d338..33a59d3 100644 --- a/gcc/testsuite/gcc.target/i386/pr57655.c +++ b/gcc/testsuite/gcc.target/i386/pr57655.c @@ -1,10 +1,8 @@ /* { dg-do compile } */ -/* { dg-options "-mavx -mvzeroupper -mno-fp-ret-in-387" } - -/* { dg-error "x87 register return with x87 disabled" "" { target { ! ia32 } } 8 } */ +/* { dg-options "-mavx -mvzeroupper -mno-fp-ret-in-387" } */ long double foo (long double x) -{ +{ /* { dg-error "x87 register return with x87 disabled" "" { target { ! ia32 } } } */ return __builtin_ilogbl (x); } diff --git a/gcc/testsuite/gcc.target/i386/pr68657.c b/gcc/testsuite/gcc.target/i386/pr68657.c index 6f0d498..fcfb489 100644 --- a/gcc/testsuite/gcc.target/i386/pr68657.c +++ b/gcc/testsuite/gcc.target/i386/pr68657.c @@ -4,6 +4,7 @@ typedef int V __attribute__((vector_size (64))); void foo (V x, V *y) { /* { dg-error "AVX512F vector argument without AVX512F enabled" } */ + /* { dg-message "The ABI for passing parameters with 64-byte alignment has changed" "" { target *-*-* } .-1 } */ *y = x; } @@ -11,5 +12,4 @@ V bar (V *x) { /* { dg-error "AVX512F vector return without AVX512F enabled" } return *x; } -/* { dg-message "The ABI for passing parameters with 64-byte alignment has changed" "" { target *-*-* } 6 } */ /* { dg-message "some warnings being treated as errors" "" { target *-*-* } 0 } */ diff --git a/gcc/testsuite/gcc.target/i386/pr69255-1.c b/gcc/testsuite/gcc.target/i386/pr69255-1.c index f2c1010..4545ce2 100644 --- a/gcc/testsuite/gcc.target/i386/pr69255-1.c +++ b/gcc/testsuite/gcc.target/i386/pr69255-1.c @@ -13,7 +13,6 @@ void foo (const long long *p) { a = __builtin_ia32_gather3siv4di (a, p, b, 1, 1); /* { dg-error "needs isa option -m32 -mavx512vl" } */ + /* { dg-warning "AVX vector return without AVX enabled changes the ABI" "" { target *-*-* } .-1 } */ + /* { dg-warning "AVX vector argument without AVX enabled changes the ABI" "" { target *-*-* } .-2 } */ } - -/* { dg-warning "AVX vector return without AVX enabled changes the ABI" "" { target *-*-* } 15 } */ -/* { dg-warning "AVX vector argument without AVX enabled changes the ABI" "" { target *-*-* } 15 } */ diff --git a/gcc/testsuite/gcc.target/i386/pr69255-2.c b/gcc/testsuite/gcc.target/i386/pr69255-2.c index 9ef6c2f..ebe6828 100644 --- a/gcc/testsuite/gcc.target/i386/pr69255-2.c +++ b/gcc/testsuite/gcc.target/i386/pr69255-2.c @@ -13,7 +13,6 @@ void foo (const long long *p) { __builtin_ia32_gather3siv4di (a, p, b, 1, 1); /* { dg-error "needs isa option -m32 -mavx512vl" } */ + /* { dg-warning "AVX vector return without AVX enabled changes the ABI" "" { target *-*-* } .-1 } */ + /* { dg-warning "AVX vector argument without AVX enabled changes the ABI" "" { target *-*-* } .-2 } */ } - -/* { dg-warning "AVX vector return without AVX enabled changes the ABI" "" { target *-*-* } 15 } */ -/* { dg-warning "AVX vector argument without AVX enabled changes the ABI" "" { target *-*-* } 15 } */ diff --git a/gcc/testsuite/gcc.target/i386/pr69255-3.c b/gcc/testsuite/gcc.target/i386/pr69255-3.c index 713725d..724e40b 100644 --- a/gcc/testsuite/gcc.target/i386/pr69255-3.c +++ b/gcc/testsuite/gcc.target/i386/pr69255-3.c @@ -13,7 +13,6 @@ void foo (const long long *p, __attribute__ ((__vector_size__ (32))) long long *q) { *q = __builtin_ia32_gather3siv4di (a, p, b, 1, 1); /* { dg-error "needs isa option -m32 -mavx512vl" } */ + /* { dg-warning "AVX vector return without AVX enabled changes the ABI" "" { target *-*-* } .-1 } */ + /* { dg-warning "AVX vector argument without AVX enabled changes the ABI" "" { target *-*-* } .-2 } */ } - -/* { dg-warning "AVX vector return without AVX enabled changes the ABI" "" { target *-*-* } 15 } */ -/* { dg-warning "AVX vector argument without AVX enabled changes the ABI" "" { target *-*-* } 15 } */