From patchwork Mon Jul 1 08:32:30 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Schulze Frielinghaus X-Patchwork-Id: 1954563 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=VFzyaBH8; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WCLQd4W38z1xpT for ; Mon, 1 Jul 2024 19:31:33 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 250843899434 for ; Mon, 1 Jul 2024 09:31:32 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 250843899434 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1719826292; bh=5Jmla3vz+vt6cM/pBreyoLHuuNmj02ouJIQcOlTEyxI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=VFzyaBH8G98Y6s/LvATYFvoANWTJJfI9oL+iM80POpjf+xUsihfdbwMmWIHG2gI7O l1RzlydrLirvG+hZFWFYFcm10OlnEACwah9frAKqBOlYrd6GX6jdi2Pn2HzQ2H6OmC Blkl/NZrfHaWlwMlOUsaksYVvTndm0RrUQqlLxlg= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0a-001b2d01.pphosted.com (mx0a-001b2d01.pphosted.com [148.163.156.1]) by sourceware.org (Postfix) with ESMTPS id 2987F389906E; Mon, 1 Jul 2024 09:30:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2987F389906E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=gcc.gnu.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2987F389906E Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=148.163.156.1 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719826259; cv=none; b=lRPL577KNH84CW6XgYTm0hdAQYyCb6lV5IzBmt0/bD1UW2WBrf/f7OIiGQXYJ94eqhMbJBDmgz6LD4lb4JDR5Cq7apJ4jK1Ddk8g1tlAnuynaxtAthihCL6e0seU9iB9vDXc2mjWQry+a3mxyAJQXNIwlIzYNIUj7EDHV9MKg3c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1719826259; c=relaxed/simple; bh=Vv9XTYOkW/fITUhhUIOH5Xf2cH55SmD0aFfiAsIFodo=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=N16W9YzqdX+J+Ih0QSyGkb9aU6byy2ImBANr4uoD9xWOhVvNs2WX4LidBw6vYDJEULhL/2KwxBXQ1tuWgmjNVPxKt08lOSFnLPCwSl2J7Y/thFHz6aQCwrMYb0V5v8KVGmBS0L7Bsf/2IF2ZbbzTMCyC0phHnzoGe7xDEwzuNuA= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0353726.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 4617ux8q028739; Mon, 1 Jul 2024 08:32:45 GMT Received: from ppma23.wdc07v.mail.ibm.com (5d.69.3da9.ip4.static.sl-reverse.com [169.61.105.93]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 403qne893x-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 01 Jul 2024 08:32:45 +0000 (GMT) Received: from pps.filterd (ppma23.wdc07v.mail.ibm.com [127.0.0.1]) by ppma23.wdc07v.mail.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 46151SJk030022; Mon, 1 Jul 2024 08:32:44 GMT Received: from smtprelay05.fra02v.mail.ibm.com ([9.218.2.225]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 402x3mp3yx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 01 Jul 2024 08:32:43 +0000 Received: from smtpav03.fra02v.mail.ibm.com (smtpav03.fra02v.mail.ibm.com [10.20.54.102]) by smtprelay05.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 4618WcPR31195600 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 1 Jul 2024 08:32:40 GMT Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 3F6D52004D; Mon, 1 Jul 2024 08:32:38 +0000 (GMT) Received: from smtpav03.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 29FF82004F; Mon, 1 Jul 2024 08:32:38 +0000 (GMT) Received: from a8345010.lnxne.boe (unknown [9.152.108.100]) by smtpav03.fra02v.mail.ibm.com (Postfix) with ESMTPS; Mon, 1 Jul 2024 08:32:38 +0000 (GMT) From: Stefan Schulze Frielinghaus To: krebbel@linux.ibm.com, gcc-patches@gcc.gnu.org Cc: Stefan Schulze Frielinghaus Subject: [PATCH 2/3] s390: Enable vcond_mask for 128-bit ops Date: Mon, 1 Jul 2024 10:32:30 +0200 Message-ID: <20240701083231.160970-3-stefansf@gcc.gnu.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20240701083231.160970-1-stefansf@gcc.gnu.org> References: <20240701083231.160970-1-stefansf@gcc.gnu.org> X-TM-AS-GCONF: 00 X-Proofpoint-GUID: GmrHAVd5tOMsx51ki3GtuXWv6bZb1Ty7 X-Proofpoint-ORIG-GUID: GmrHAVd5tOMsx51ki3GtuXWv6bZb1Ty7 X-Proofpoint-UnRewURL: 0 URL was un-rewritten MIME-Version: 1.0 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.28.16 definitions=2024-07-01_06,2024-06-28_01,2024-05-17_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 spamscore=0 bulkscore=0 phishscore=0 adultscore=0 impostorscore=0 suspectscore=0 priorityscore=1501 mlxscore=0 mlxlogscore=999 lowpriorityscore=0 clxscore=1034 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2406140001 definitions=main-2407010064 X-Spam-Status: No, score=-11.7 required=5.0 tests=BAYES_00, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, KAM_SHORT, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NEUTRAL, TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org In preparation of dropping vcond{,u,eq} optabs https://gcc.gnu.org/pipermail/gcc-patches/2024-June/654690.html enable 128-bit operands for vcond_mask---including integer as well as floating point. This fixes partially PR115519 w.r.t. autovec-long-double-signaling-*.c tests. gcc/ChangeLog: * config/s390/vector.md: Enable vcond_mask for 128-bit ops. --- Bootstrapped and regtested on s390. Ok for mainline? gcc/config/s390/vector.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/config/s390/vector.md b/gcc/config/s390/vector.md index 032ec44542c..0e57dd1650c 100644 --- a/gcc/config/s390/vector.md +++ b/gcc/config/s390/vector.md @@ -756,12 +756,12 @@ }) (define_expand "vcond_mask_" - [(set (match_operand:V 0 "register_operand" "") - (if_then_else:V + [(set (match_operand:VT 0 "register_operand" "") + (if_then_else:VT (eq (match_operand: 3 "register_operand" "") (match_dup 4)) - (match_operand:V 2 "register_operand" "") - (match_operand:V 1 "register_operand" "")))] + (match_operand:VT 2 "register_operand" "") + (match_operand:VT 1 "register_operand" "")))] "TARGET_VX" "operands[4] = CONST0_RTX (mode);")