From patchwork Wed Oct 4 16:44:05 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Krebbel X-Patchwork-Id: 821405 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-463472-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="n/Pc67SG"; dkim-atps=neutral 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 3y6hZK5Zw3z9s83 for ; Thu, 5 Oct 2017 03:44:24 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:subject:date:message-id; q=dns; s=default; b=fTP4JhhXoNFRByz FJz/SyfmwFz7EkziWmzkSH2RsBPsAKigFQuVP0d+5e+R64AAkiBmwZ61g9LJ5PGi pB7bFjQA/eXwQOaScS1l6G/t9OBLfbCCvEO44dnD8g4T1RY2E2AKk9aIgq8U+PcJ s678tHlc3XXIk3ULHVK4KY4f8SHI= 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:from :to:subject:date:message-id; s=default; bh=MBFPNSw8CzlvGBllfTavm oUGtgc=; b=n/Pc67SGFMHtR8wKxpOjiUrWUTMBxmJ040FGFt+PpX1CplWPaDCPH BHIlb1z1CSofVymm9x8kq0lgXtzHfPujPvaBYDc/FWDweZQuyiPuXaoS5U6b0oMv mQUAMp5NIkiAQh49BFyO6tCLNJz16T2OjKPe6sKHUy5ZcmzIdhaawY= Received: (qmail 26486 invoked by alias); 4 Oct 2017 16:44:16 -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 26470 invoked by uid 89); 4 Oct 2017 16:44:16 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.6 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_LAZY_DOMAIN_SECURITY, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 spammy=291 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; Wed, 04 Oct 2017 16:44:15 +0000 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.21/8.16.0.21) with SMTP id v94GhI8E017042 for ; Wed, 4 Oct 2017 12:44:10 -0400 Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 2dd1rcpbe2-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 04 Oct 2017 12:44:10 -0400 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 4 Oct 2017 17:44:08 +0100 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 4 Oct 2017 17:44:06 +0100 Received: from d06av23.portsmouth.uk.ibm.com (d06av23.portsmouth.uk.ibm.com [9.149.105.59]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id v94Gi6WT21364874 for ; Wed, 4 Oct 2017 16:44:06 GMT Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id C45CAA4051 for ; Wed, 4 Oct 2017 17:39:48 +0100 (BST) Received: from d06av23.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 9E53AA404D for ; Wed, 4 Oct 2017 17:39:48 +0100 (BST) Received: from maggie.emea.ibm.com (unknown [9.145.173.187]) by d06av23.portsmouth.uk.ibm.com (Postfix) with ESMTPS for ; Wed, 4 Oct 2017 17:39:48 +0100 (BST) From: Andreas Krebbel To: gcc-patches@gcc.gnu.org Subject: [Committed] S/390: Fix mode in vector merge pattern. Date: Wed, 4 Oct 2017 18:44:05 +0200 X-TM-AS-GCONF: 00 x-cbid: 17100416-0040-0000-0000-000003FF6567 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17100416-0041-0000-0000-000020A0D0ED Message-Id: <20171004164405.9564-1-krebbel@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-10-04_08:, , 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-1707230000 definitions=main-1710040235 X-IsSubscribed: yes vec_unpacks_hi_v4sf/vec_unpacks_lo_v4sf expand vec_mergeh and vec_mergel patterns also for z13 with V4SF modes so the patterns should better accept this. Fixed by changing the mode iterator to V_128_NOSINGLE which accepts V4SF unconditionally. Committed to mainline. gcc/ChangeLog: 2017-10-04 Andreas Krebbel * config/s390/vx-builtins.md ("vec_mergeh") ("vec_mergel"): Change mode iterator to V_128_NOSINGLE. --- gcc/config/s390/vx-builtins.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gcc/config/s390/vx-builtins.md b/gcc/config/s390/vx-builtins.md index 7fb176c..1149355 100644 --- a/gcc/config/s390/vx-builtins.md +++ b/gcc/config/s390/vx-builtins.md @@ -211,9 +211,9 @@ ; (vec_select op0) (vec_select op1) ; vmrhb, vmrhh, vmrhf, vmrhg (define_insn "vec_mergeh" - [(set (match_operand:VEC_HW 0 "register_operand" "=v") - (unspec:VEC_HW [(match_operand:VEC_HW 1 "register_operand" "v") - (match_operand:VEC_HW 2 "register_operand" "v")] + [(set (match_operand:V_128_NOSINGLE 0 "register_operand" "=v") + (unspec:V_128_NOSINGLE [(match_operand:V_128_NOSINGLE 1 "register_operand" "v") + (match_operand:V_128_NOSINGLE 2 "register_operand" "v")] UNSPEC_VEC_MERGEH))] "TARGET_VX" "vmrh\t%v0,%1,%2" @@ -221,9 +221,9 @@ ; vmrlb, vmrlh, vmrlf, vmrlg (define_insn "vec_mergel" - [(set (match_operand:VEC_HW 0 "register_operand" "=v") - (unspec:VEC_HW [(match_operand:VEC_HW 1 "register_operand" "v") - (match_operand:VEC_HW 2 "register_operand" "v")] + [(set (match_operand:V_128_NOSINGLE 0 "register_operand" "=v") + (unspec:V_128_NOSINGLE [(match_operand:V_128_NOSINGLE 1 "register_operand" "v") + (match_operand:V_128_NOSINGLE 2 "register_operand" "v")] UNSPEC_VEC_MERGEL))] "TARGET_VX" "vmrl\t%v0,%1,%2"