From patchwork Fri Feb 10 04:09:08 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Aaron Sawdey X-Patchwork-Id: 726397 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 3vKM0H3vzNz9s73 for ; Fri, 10 Feb 2017 15:09:35 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="p8L9ZCz2"; 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 :subject:from:to:cc:date:content-type:mime-version:message-id; q=dns; s=default; b=f6pst0ItoEk4OTK+B+xj+IvKKazL4CYqKl0RLd2Ng2P lSEkg7vBiomka6rOpErEQ+q1Kh5JScyTUUeQVmpMJWH4IEjwhx2Hly50ZJn5mboJ mxx6RnWqzkYuj1SxZ8xp7++pEYGfWd0a/NYYd8ry0wc2lkcu80f3n9YJd6e339/s = 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:from:to:cc:date:content-type:mime-version:message-id; s=default; bh=Y8ihi+OD45AmWPW/foo4iZjsxcQ=; b=p8L9ZCz2/h6An7mvh Z22FP40A8iNV+tm1ky4VEz7SOAEZAGOtvUbFMe7WJUtcxl/S4KuW+h7Rf9sjIO+3 v6Oyp3NODj54WzsK0UJ2pSNY5c1jfJjuDomrg+pFoL6sU/ODtOuiF4QufZKVr0wR fOm3mI8y76nSmxiMUcBer4tFRc= Received: (qmail 40435 invoked by alias); 10 Feb 2017 04:09:26 -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 40411 invoked by uid 89); 10 Feb 2017 04:09:25 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.2 required=5.0 tests=AWL, BAYES_20, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 spammy=H*c:HnHH, Toolchain, bcdadd, sawdey 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; Fri, 10 Feb 2017 04:09:15 +0000 Received: from pps.filterd (m0098396.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v1A446uE042019 for ; Thu, 9 Feb 2017 23:09:14 -0500 Received: from e17.ny.us.ibm.com (e17.ny.us.ibm.com [129.33.205.207]) by mx0a-001b2d01.pphosted.com with ESMTP id 28h25p05sq-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 09 Feb 2017 23:09:14 -0500 Received: from localhost by e17.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 9 Feb 2017 23:09:13 -0500 Received: from d01dlp02.pok.ibm.com (9.56.250.167) by e17.ny.us.ibm.com (146.89.104.204) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 9 Feb 2017 23:09:11 -0500 Received: from b01cxnp22036.gho.pok.ibm.com (b01cxnp22036.gho.pok.ibm.com [9.57.198.26]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id 0F08E6E801D; Thu, 9 Feb 2017 23:08:42 -0500 (EST) Received: from b01ledav002.gho.pok.ibm.com (b01ledav002.gho.pok.ibm.com [9.57.199.107]) by b01cxnp22036.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v1A49AuO55509180; Fri, 10 Feb 2017 04:09:10 GMT Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1ED0112403D; Thu, 9 Feb 2017 23:09:10 -0500 (EST) Received: from ragesh3a (unknown [9.80.224.228]) by b01ledav002.gho.pok.ibm.com (Postfix) with ESMTP id 8EA9812403F; Thu, 9 Feb 2017 23:09:09 -0500 (EST) Subject: [PATCH][PR target/79295][7 regression] fix ppc bcdadd insn pattern From: Aaron Sawdey To: gcc-patches@gcc.gnu.org Cc: Segher Boessenkool , Bill Schmidt , meissner@gcc.gnu.org Date: Thu, 09 Feb 2017 22:09:08 -0600 Mime-Version: 1.0 X-TM-AS-GCONF: 00 X-Content-Scanned: Fidelis XPS MAILER x-cbid: 17021004-0040-0000-0000-000002982130 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006588; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000203; SDB=6.00819726; UDB=6.00400719; IPR=6.00597179; BA=6.00005130; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00014240; XFM=3.00000011; UTC=2017-02-10 04:09:12 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17021004-0041-0000-0000-0000068B374D Message-Id: <1486699748.30084.21.camel@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-02-10_01:, , 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-1612050000 definitions=main-1702100040 X-IsSubscribed: yes The bcdadd pattern has the wrong constraints. The change Meissner supplied in PR79295 fixes the issue. Successfully bootstrapped on ppc64le, ok for trunk if regtest also passes? 2017-02-09  Aaron Sawdey   PR target/79295 * config/rs6000/altivec.md (bcd): Fix constraints. Index: gcc/config/rs6000/altivec.md =================================================================== --- gcc/config/rs6000/altivec.md (revision 245221) +++ gcc/config/rs6000/altivec.md (working copy) @@ -3710,10 +3710,10 @@ (define_code_iterator BCD_TEST [eq lt gt unordered]) (define_insn "bcd" - [(set (match_operand:V1TI 0 "register_operand" "") - (unspec:V1TI [(match_operand:V1TI 1 "register_operand" "") - (match_operand:V1TI 2 "register_operand" "") - (match_operand:QI 3 "const_0_to_1_operand" "")] + [(set (match_operand:V1TI 0 "gpc_reg_operand" "=v") + (unspec:V1TI [(match_operand:V1TI 1 "gpc_reg_operand" "v") + (match_operand:V1TI 2 "gpc_reg_operand" "v") + (match_operand:QI 3 "const_0_to_1_operand" "n")] UNSPEC_BCD_ADD_SUB)) (clobber (reg:CCFP CR6_REGNO))] "TARGET_P8_VECTOR"