From patchwork Tue Sep 5 06:43:31 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: 809966 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-461453-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="YWydVYj5"; dkim-atps=neutral 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 3xmcd25c05z9sNr for ; Tue, 5 Sep 2017 16:44:05 +1000 (AEST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :subject:to:references:cc:from:message-id:date:mime-version :in-reply-to:content-type; q=dns; s=default; b=XVpps8SZkvT2z3qBX TndNFzdE9fFNGqlYfoMIjlQ0Smj2v/5xaOk0uK95LZga8Z+klf9ghPBB4Wl6jv0h UoMAGD1PmeZZItOL6a0xUoOaufrgjqoWN/CaE4Y1SvMN+M14E3AS6oY2CTsQ8kti HVVf1nOxgVy1exilWFXJXlwL2w= 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 :subject:to:references:cc:from:message-id:date:mime-version :in-reply-to:content-type; s=default; bh=rqeR9hhJw0fNGdnJJ0jMYTV LB0Q=; b=YWydVYj5/5pxh8SuDnZkJ26LLop6By03qRUuqkI3ybhTreqUAMe5+8R u1dro0wWtQV5Px09IXgUqZTX0bte6MaabKsJYPqgcTun8hw8A4CrLqU7YziS0xq6 jsXaHbzwzzurV03Pw/tu+1bGbe0e2nPSh2g2qlAGc+NH6mHqpdIE= Received: (qmail 88837 invoked by alias); 5 Sep 2017 06:43:57 -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 88712 invoked by uid 89); 5 Sep 2017 06:43:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-24.6 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=fn6 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; Tue, 05 Sep 2017 06:43:41 +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 1dp7aE-0002Fn-DK from Tom_deVries@mentor.com ; Mon, 04 Sep 2017 23:43:38 -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.1263.5; Tue, 5 Sep 2017 07:43:34 +0100 Subject: [testsuite, committed] Fix call arguments mismatch in gcc.c-torture/compile/pr82052.c To: gcc-patches References: CC: Jeff Law From: Tom de Vries Message-ID: Date: Tue, 5 Sep 2017 08:43:31 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: 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) [ was: Re: [PATCH][committed] Always initialize hash table elements ] On 09/01/2017 05:39 PM, Jeff Law wrote: > * gcc.c-torture/compile/pr82052.c: New test. > diff --git a/gcc/testsuite/gcc.c-torture/compile/pr82052.c b/gcc/testsuite/gcc.c-torture/compile/pr82052.c > +short fn2() {} > + x = fn5(f && fn2(t46 = g = t52, > + fn6(fn7(fn8(f, fn9(fn10(t51, f, t53, t53)))) < t21, t53))); Hi, this patch fixes a call arguments mismatch in gcc.c-torture/compile/pr82052.c when compiling for nvptx. I've verified that the test-case is still failing when the patch for PR82052 is reverted. Committed. Thanks, - Tom Fix call arguments mismatch in gcc.c-torture/compile/pr82052.c 2017-09-04 Tom de Vries PR tree-optimization/82052 * gcc.c-torture/compile/pr82052.c (fn2): Add parameters corresponding to call in fn11. --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.c-torture/compile/pr82052.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.c-torture/compile/pr82052.c b/gcc/testsuite/gcc.c-torture/compile/pr82052.c index 4441985..3763161 100644 --- a/gcc/testsuite/gcc.c-torture/compile/pr82052.c +++ b/gcc/testsuite/gcc.c-torture/compile/pr82052.c @@ -20,7 +20,7 @@ uint16_t t35[][7][2]; static uint8_t t41; char z[][8][3]; char fn1(char p1, int p2) { return p1 < 0 ?: p1 >> p2; } -short fn2() {} +short fn2(int a, uint16_t b) {} void fn3(uint8_t p1) { d = d >> 8 ^ c[(d ^ p1) & 5]; } void fn4(uint32_t p1, int p2) { int e;