From patchwork Tue Dec 13 09:28:29 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dominik Vogt X-Patchwork-Id: 705337 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 3tdDsr5Bp5z9sD5 for ; Tue, 13 Dec 2016 20:28:46 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="PANRjhmq"; 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=HeGUtslM0QDiGd0vuXlBMobOPhlSnXt CfVri8jYZAEOFlTbJigCeo2NZyTsgXRwsBsRFsMaX2RsXt3kPNcwlrUrJj1ZzFlT EJW2+rbSnM1hLZIC7idYw1f0vuW5z6dtcv/ZX9iiff1oQY5Wl/s21ao2tbKjJ4Dh XHvpwtA6z5y4= 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=6vQEy4aUz6FDrpb2Px/ovvkl9Eo=; b=PANRj hmqPlfyR2PIUZmk0khbznM+yR6azLt+SLBMR4n3/lVWTx2PtI1Y0vvT6aqJtzF4L cQJfnME/7+p6a5MCCXsMmVP+oAcAdFAfiCE6FqPvkIg/yJoUrd2t/jq+b1rffv2z EoWxKC54VLuUn+qpiVERG8/Iy8dxKkyGwwK2nU= Received: (qmail 59156 invoked by alias); 13 Dec 2016 09:28:38 -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 59139 invoked by uid 89); 13 Dec 2016 09:28:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=3.1 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, MEDICAL_SUBJECT, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=sk:changel, sk:ChangeL, 2.3.0 X-HELO: mx0a-001b2d01.pphosted.com Received: from mx0a-001b2d01.pphosted.com (HELO mx0a-001b2d01.pphosted.com) (148.163.156.1) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 13 Dec 2016 09:28:36 +0000 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id uBD9OYdT025014 for ; Tue, 13 Dec 2016 04:28:35 -0500 Received: from e06smtp07.uk.ibm.com (e06smtp07.uk.ibm.com [195.75.94.103]) by mx0a-001b2d01.pphosted.com with ESMTP id 27ad6rmbhm-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 13 Dec 2016 04:28:34 -0500 Received: from localhost by e06smtp07.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 13 Dec 2016 09:28:32 -0000 Received: from d06dlp02.portsmouth.uk.ibm.com (9.149.20.14) by e06smtp07.uk.ibm.com (192.168.101.137) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 13 Dec 2016 09:28:30 -0000 Received: from b06cxnps3074.portsmouth.uk.ibm.com (d06relay09.portsmouth.uk.ibm.com [9.149.109.194]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 2D1A2219004D for ; Tue, 13 Dec 2016 09:27:40 +0000 (GMT) Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id uBD9SUZ314811494; Tue, 13 Dec 2016 09:28:30 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AAD3D52051; Tue, 13 Dec 2016 08:27:09 +0000 (GMT) Received: from oc5510024614.ibm.com (unknown [9.152.224.33]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id A2BA552041; Tue, 13 Dec 2016 08:27:09 +0000 (GMT) Received: by oc5510024614.ibm.com (Postfix, from userid 500) id DAAA91AA3D; Tue, 13 Dec 2016 10:28:29 +0100 (CET) Date: Tue, 13 Dec 2016 10:28:29 +0100 From: Dominik Vogt To: gcc-patches@gcc.gnu.org Cc: Andreas Krebbel Subject: [PATCH] S/390: Run md tests with -march=native instead of -march=z13. 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-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16121309-0028-0000-0000-00000263DE06 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16121309-0029-0000-0000-00002191B4FA Message-Id: <20161213092829.GA12324@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-12-13_07:, , 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-1609300000 definitions=main-1612130164 The attached patch fixes an md test execution problem on S/390. The tests would be built with -march=z13 but executed even on older machines. Build with -march=native instead, so executing the tests should work on any machine generation. Tested on s390x biarch, but not bootstrapped or regression tested. Ciao Dominik ^_^ ^_^ diff --git a/gcc/testsuite/gcc.target/s390/s390.exp b/gcc/testsuite/gcc.target/s390/s390.exp index 450dcaf..9393478 100644 --- a/gcc/testsuite/gcc.target/s390/s390.exp +++ b/gcc/testsuite/gcc.target/s390/s390.exp @@ -112,11 +112,11 @@ torture-finish # Additional md torture tests. torture-init set MD_TEST_OPTS [list \ - {-Os -march=z900} {-Os -march=z13} \ - {-O0 -march=z900} {-O0 -march=z13} \ - {-O1 -march=z900} {-O1 -march=z13} \ - {-O2 -march=z900} {-O2 -march=z13} \ - {-O3 -march=z900} {-O3 -march=z13}] + {-Os -march=z900} {-Os -march=native} \ + {-O0 -march=z900} {-O0 -march=native} \ + {-O1 -march=z900} {-O1 -march=native} \ + {-O2 -march=z900} {-O2 -march=native} \ + {-O3 -march=z900} {-O3 -march=native}] set-torture-options $MD_TEST_OPTS gcc-dg-runtest [lsort [glob -nocomplain $md_tests]] "" $DEFAULT_CFLAGS torture-finish