From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 108789 invoked by alias); 31 Mar 2017 15:25:08 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 108776 invoked by uid 89); 31 Mar 2017 15:25:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.1 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,KAM_ASCII_DIVIDERS,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=Hx-languages-length:1709, U*pthaugen, sk:pthauge, qhi 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; Fri, 31 Mar 2017 15:25:06 +0000 Received: from pps.filterd (m0098417.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.20/8.16.0.20) with SMTP id v2VFNkq4012956 for ; Fri, 31 Mar 2017 11:25:05 -0400 Received: from e13.ny.us.ibm.com (e13.ny.us.ibm.com [129.33.205.203]) by mx0a-001b2d01.pphosted.com with ESMTP id 29hqu6xm82-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Fri, 31 Mar 2017 11:25:05 -0400 Received: from localhost by e13.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 31 Mar 2017 11:25:04 -0400 Received: from b01cxnp22035.gho.pok.ibm.com (9.57.198.25) by e13.ny.us.ibm.com (146.89.104.200) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 31 Mar 2017 11:25:01 -0400 Received: from b01ledav002.gho.pok.ibm.com (b01ledav002.gho.pok.ibm.com [9.57.199.107]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v2VFP0lI61669526; Fri, 31 Mar 2017 15:25:00 GMT Received: from b01ledav002.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 1E6BA124053; Fri, 31 Mar 2017 11:24:56 -0400 (EDT) Received: from oc1687012634.ibm.com (unknown [9.10.86.158]) by b01ledav002.gho.pok.ibm.com (Postfix) with ESMTP id EAFE4124055; Fri, 31 Mar 2017 11:24:55 -0400 (EDT) From: Pat Haugen Subject: [PATCH rs6000] Fix PR target/80107, ICE in final_scan_insn To: GCC Patches Cc: Segher Boessenkool , David Edelsohn Date: Fri, 31 Mar 2017 15:27:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 17033115-0008-0000-0000-000001E041C5 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00006875; HX=3.00000240; KW=3.00000007; PH=3.00000004; SC=3.00000207; SDB=6.00841247; UDB=6.00414182; IPR=6.00619312; BA=6.00005249; NDR=6.00000001; ZLA=6.00000005; ZF=6.00000009; ZB=6.00000000; ZP=6.00000000; ZH=6.00000000; ZU=6.00000002; MB=3.00014874; XFM=3.00000013; UTC=2017-03-31 15:25:03 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17033115-0009-0000-0000-000034467459 Message-Id: X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-03-31_13:,, 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-1702020001 definitions=main-1703310140 X-IsSubscribed: yes X-SW-Source: 2017-03/txt/msg01576.txt.bz2 float2_internal uses gen_extendhidi2 on a VSX register but extendhidi2 only supports GPRs if -mno-gen-cell-microcode is in effect. Fixed by adding a check of TARGET_VSX_SMALL_INTEGER. Bootstrap/regtest on powerpc64le-linux with no regressions, ok for trunk? The -mvsx-small-integer option/code was introduced in GCC 7 so no need for backport. -Pat 2017-03-31 Pat Haugen PR target/80107 * config/rs6000/rs6000.md (extendhi2): Add test for TARGET_VSX_SMALL_INTEGER. testsuite/ChangeLog: 2017-03-31 Pat Haugen * gfortran.dg/pr80107.f: New. Index: config/rs6000/rs6000.md =================================================================== --- config/rs6000/rs6000.md (revision 246534) +++ config/rs6000/rs6000.md (working copy) @@ -954,7 +954,7 @@ (define_expand "extendhi2" (define_insn "*extendhi2" [(set (match_operand:EXTHI 0 "gpc_reg_operand" "=r,r,?*wK,?*wK") (sign_extend:EXTHI (match_operand:HI 1 "reg_or_mem_operand" "m,r,Z,wK")))] - "rs6000_gen_cell_microcode" + "rs6000_gen_cell_microcode || TARGET_VSX_SMALL_INTEGER" "@ lha%U1%X1 %0,%1 extsh %0,%1 Index: testsuite/gfortran.dg/pr80107.f =================================================================== --- testsuite/gfortran.dg/pr80107.f (nonexistent) +++ testsuite/gfortran.dg/pr80107.f (working copy) @@ -0,0 +1,7 @@ +! { dg-do compile { target { powerpc*-*-* } } } +! { dg-options "-O0 -mpower9-dform-vector -mno-gen-cell-microcode" } + + integer(kind=2) j, j2, ja + call c_c(CMPLX(j),(1.,0.),'CMPLX(integer(2))') + end +! { dg-prune-output "-mno-gen-cell-microcode requires -mcpu=cell" }