From patchwork Thu Aug 18 09:00:06 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominik Vogt X-Patchwork-Id: 660371 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 3sFKnK0sSKz9t0J for ; Thu, 18 Aug 2016 19:00:36 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=BoS+SzLa; 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:date :from:to:cc:subject:reply-to:mime-version:content-type :message-id; q=dns; s=default; b=jP83cv7Cg+VogBfvDLZUU+j9AEkYUAg nz6lo60cOTm9EVMqpRWGdISHA/uKrpP7FA7AOw16FxlD8ghZ3HB6pd7w+0x+jzKo 6CKb1/3hv1ShhNxVODJXafm5ypxXr01JnHoRpKjNSiQdKWUqRpORuPvSSiIrnHbQ 2xm1hzhY/yTo= 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:date :from:to:cc:subject:reply-to:mime-version:content-type :message-id; s=default; bh=jYFEK1dICs1JwwkJNNDI1tSNuas=; b=BoS+S zLa6mEetw/618n1GssXTVnFg8oyEM3pXC7xeAMdqXlzW8Q6pTEoOzL5dzd8RAVxG /fFNhruDZb9TQHCU4d/tOngSvTRmdR8+JxMNXOqacNmUgigKA+o+z9nomHTs2xah 1l8W4RpbA8QKSzGbGWjGl35l6QUaHyaX9fdGrA= Received: (qmail 54168 invoked by alias); 18 Aug 2016 09:00:20 -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 54041 invoked by uid 89); 18 Aug 2016 09:00:19 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=improves, D*vnet.ibm.com, D*linux.vnet.ibm.com, H*m:linux X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0b-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.158.5) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 18 Aug 2016 09:00:18 +0000 Received: from pps.filterd (m0098416.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u7I8x4t1064637 for ; Thu, 18 Aug 2016 05:00:16 -0400 Received: from e06smtp08.uk.ibm.com (e06smtp08.uk.ibm.com [195.75.94.104]) by mx0b-001b2d01.pphosted.com with ESMTP id 24vky4euh5-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 18 Aug 2016 05:00:16 -0400 Received: from localhost by e06smtp08.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 18 Aug 2016 10:00:14 +0100 Received: from d06dlp01.portsmouth.uk.ibm.com (9.149.20.13) by e06smtp08.uk.ibm.com (192.168.101.138) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 18 Aug 2016 10:00:12 +0100 X-IBM-Helo: d06dlp01.portsmouth.uk.ibm.com X-IBM-MailFrom: vogt@linux.vnet.ibm.com X-IBM-RcptTo: gcc-patches@gcc.gnu.org Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp01.portsmouth.uk.ibm.com (Postfix) with ESMTP id ADBF817D8024 for ; Thu, 18 Aug 2016 10:01:54 +0100 (BST) Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u7I90B5t18546778 for ; Thu, 18 Aug 2016 09:00:11 GMT Received: from d06av04.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u7I90AQL006857 for ; Thu, 18 Aug 2016 03:00:10 -0600 Received: from oc5510024614.ibm.com (dyn-9-152-224-147.boeblingen.de.ibm.com [9.152.224.147]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id u7I906hq006670; Thu, 18 Aug 2016 03:00:07 -0600 Received: by oc5510024614.ibm.com (Postfix, from userid 500) id 7830018F57; Thu, 18 Aug 2016 11:00:06 +0200 (CEST) Date: Thu, 18 Aug 2016 10:00:06 +0100 From: Dominik Vogt To: gcc-patches@gcc.gnu.org Cc: Andreas Krebbel Subject: [PATCH] S/390: Improve result verification in test case vec-genmask-1.c. Reply-To: vogt@linux.vnet.ibm.com Mail-Followup-To: vogt@linux.vnet.ibm.com, gcc-patches@gcc.gnu.org, Andreas Krebbel MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16081809-0032-0000-0000-000001FD6CD0 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16081809-0033-0000-0000-00001C7024EF Message-Id: <20160818090006.GA22139@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-08-18_04:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=1 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1608180105 THe attached patch improves checking of teh results of the subtests "a" and "f". As they share the same "vone" instruction, the duplicate scan-assembler-times was bogus. Moved "f" to a separate function to fix this. Also double check that no extra "vgmf" instructions are used. Ciao Dominik ^_^ ^_^ diff --git a/gcc/testsuite/gcc.target/s390/zvector/vec-genmask-1.c b/gcc/testsuite/gcc.target/s390/zvector/vec-genmask-1.c index 745c1ed..0e57b8d 100644 --- a/gcc/testsuite/gcc.target/s390/zvector/vec-genmask-1.c +++ b/gcc/testsuite/gcc.target/s390/zvector/vec-genmask-1.c @@ -14,11 +14,19 @@ foo () c = vec_genmasks_32 (31, 31); d = vec_genmasks_32 (5, 5); e = vec_genmasks_32 (31, 0); +} + +int +bar () +{ + /* Needs to be in a separate function so that the vone from "a" is not reused + for "f". */ f = vec_genmasks_32 (6, 5); } -/* { dg-final { scan-assembler-times "vone" 1 } } */ -/* { dg-final { scan-assembler-times "vgmf\t%v.*,0,0" 1 } } */ -/* { dg-final { scan-assembler-times "vgmf\t%v.*,31,31" 1 } } */ -/* { dg-final { scan-assembler-times "vgmf\t%v.*,5,5" 1 } } */ -/* { dg-final { scan-assembler-times "vgmf\t%v.*,31,0" 1 } } */ -/* { dg-final { scan-assembler-times "vone" 1 } } */ + +/* a + f: { dg-final { scan-assembler-times "vone" 2 } } */ +/* b: { dg-final { scan-assembler-times "vgmf\t%v.*,0,0" 1 } } */ +/* c: { dg-final { scan-assembler-times "vgmf\t%v.*,31,31" 1 } } */ +/* d: { dg-final { scan-assembler-times "vgmf\t%v.*,5,5" 1 } } */ +/* e: { dg-final { scan-assembler-times "vgmf\t%v.*,31,0" 1 } } */ +/* b - e: { dg-final { scan-assembler-times "vgmf" 4 } } */