From patchwork Fri Jul 15 16:40:34 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Schmidt X-Patchwork-Id: 648898 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 3rrdc45ZMCz9sBf for ; Sat, 16 Jul 2016 02:40:50 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=ghZFQRsa; 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:cc :from:subject:date:mime-version:content-type :content-transfer-encoding:message-id; q=dns; s=default; b=NslsK fChdny3oZxCA3Bw9oI6VLdKAJpOugaHDdS/+uNrO9i8iNbzRpC9u+y+5UOEch+fz rWGV2qB4rxdmpQVAbh4VIZjyhY7ZlAGPE6bk7jZ7P8d7kS7V9UQPrj64sIUp5jKi EDaD0gerCL9emHLOc62bLvuvqt/PfMcL7uH9aY= 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:cc :from:subject:date:mime-version:content-type :content-transfer-encoding:message-id; s=default; bh=1DcPUq9j5tE N2b6UAqjO3ELGrDw=; b=ghZFQRsaSUZwMfV4tFjlItfleW2A0XrHYdxGD1icEvu HoTcDwDGPMzK/UCrRQMoHXI8hCulNZVaaWAeRqw+r02VH8Hra2aVu7txEhx9IS2D QklNJxZ7aTA73z3aqXBXTBNvTfe3jZQsw7zgVlCYTbrFddu7vwaqy9/HYsPa5spM = Received: (qmail 98896 invoked by alias); 15 Jul 2016 16:40:43 -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 98862 invoked by uid 89); 15 Jul 2016 16:40:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=BAYES_00, KAM_ASCII_DIVIDERS, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=U*wschmidt, sk:wschmid, wschmidt@linux.vnet.ibm.com, wschmidtlinuxvnetibmcom 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 (AES256-SHA encrypted) ESMTPS; Fri, 15 Jul 2016 16:40:41 +0000 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id u6FGYG0P129224 for ; Fri, 15 Jul 2016 12:40:40 -0400 Received: from e17.ny.us.ibm.com (e17.ny.us.ibm.com [129.33.205.207]) by mx0b-001b2d01.pphosted.com with ESMTP id 246k0up1d8-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 15 Jul 2016 12:40:39 -0400 Received: from localhost by e17.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 15 Jul 2016 12:40:37 -0400 Received: from d01dlp01.pok.ibm.com (9.56.250.166) by e17.ny.us.ibm.com (146.89.104.204) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 15 Jul 2016 12:40:36 -0400 X-IBM-Helo: d01dlp01.pok.ibm.com X-IBM-MailFrom: wschmidt@linux.vnet.ibm.com Received: from b01cxnp22035.gho.pok.ibm.com (b01cxnp22035.gho.pok.ibm.com [9.57.198.25]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id 1965238C8039; Fri, 15 Jul 2016 12:40:35 -0400 (EDT) Received: from b01ledav001.gho.pok.ibm.com (b01ledav001.gho.pok.ibm.com [9.57.199.106]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u6FGeZLK58982432; Fri, 15 Jul 2016 16:40:35 GMT Received: from b01ledav001.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id DFE8828046; Fri, 15 Jul 2016 12:40:34 -0400 (EDT) Received: from BigMac.local (unknown [9.80.197.77]) by b01ledav001.gho.pok.ibm.com (Postfix) with ESMTP id B270D2803F; Fri, 15 Jul 2016 12:40:34 -0400 (EDT) To: GCC Patches Cc: Segher Boessenkool , David Edelsohn From: Bill Schmidt Subject: [PATCH, rs6000] Fix {div,mul}kc3-1.c for older hardware Date: Fri, 15 Jul 2016 11:40:34 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 16071516-0040-0000-0000-000000D152E4 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 16071516-0041-0000-0000-000004AB88B7 Message-Id: <0233f92b-9933-c06f-963b-7fa0e9a984ec@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2016-07-15_09:, , signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1604210000 definitions=main-1607150173 X-IsSubscribed: yes Hi, For the subject tests, I neglected to ensure they would be skipped on older hardware. This patch fixes that. Tested on powerpc64-unknown-linux-gnu on POWER7 to verify the tests are unsupported there, and on powerpc64le-unknown-linux-gnu on POWER8 to verify they still run there. Ok for trunk and gcc-6-branch? Thanks, Bill 2016-07-15 Bill Schmidt * gcc.target/powerpc/divkc3-1.c: Require p8vector support. * gcc.target/powerpc/mulkc3-1.c: Likewise. Index: gcc/testsuite/gcc.target/powerpc/divkc3-1.c =================================================================== --- gcc/testsuite/gcc.target/powerpc/divkc3-1.c (revision 238375) +++ gcc/testsuite/gcc.target/powerpc/divkc3-1.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do run { target { powerpc64*-*-* && vsx_hw } } } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mfloat128 -mvsx" } */ void abort (); Index: gcc/testsuite/gcc.target/powerpc/mulkc3-1.c =================================================================== --- gcc/testsuite/gcc.target/powerpc/mulkc3-1.c (revision 238375) +++ gcc/testsuite/gcc.target/powerpc/mulkc3-1.c (working copy) @@ -1,4 +1,5 @@ /* { dg-do run { target { powerpc64*-*-* && vsx_hw } } } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mfloat128 -mvsx" } */ void abort ();