Message ID | 20240219092411.15161-1-jchrist@linux.ibm.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:693c:2685:b0:108:e6aa:91d0 with SMTP id mn5csp1171998dyc; Mon, 19 Feb 2024 01:30:15 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXqwdXx5DIdoRw3aDCXL0gZaYgWDaUz6fIx1dCI1v1SRPWdmA6fdRvgaFQv3d1AsG1eRphxOheVrtuhpigKXdWpoYcapw== X-Google-Smtp-Source: AGHT+IFN4879a8dvIiYuQNKPXRtOs1twcvJjPhpKTSqfZHjJgb+Jkisz1W47eVwz+ia5hetrTYWL X-Received: by 2002:a05:622a:316:b0:42a:9d03:1c1d with SMTP id q22-20020a05622a031600b0042a9d031c1dmr14427744qtw.63.1708335015264; Mon, 19 Feb 2024 01:30:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708335015; cv=pass; d=google.com; s=arc-20160816; b=HA2su0zCF9MkmVc4MZQLKd4DUQSGeYAeeXHbYOBx+NpMg+RovHlnnNr0iIT3MS54SF OsEl9G75KiTBwIjtRAIpQB8XgrjJI/hs6jKONUZ5HVIC5u2Opv5OUvTXUf1M4n6GeWCS IBBjNLE8e6jDW0KdDXdjWo4uJtNytOG7VAPFsaYwdVImV3wv7U8mluKnt3AHfBjEaN0v Pe0DpGFpVQx9z/ax3yzkrrwat69rj8Io8wlEe2vvMBCedajYizzBeZwEPwg+DtSLQzDe 5+daxaLdYGYbIQ2r1EeoQ8m9RaSj/JZAkgLK/Huvh4eACUYVvJ/9qaEDzeD9b9FETo8T 3LIw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=A685V8VfoFzrixuWSIztSpAwjTBW8EnExyYq4c6oLM0=; fh=hPrbWPhweUx4V0GV9uXJqbyAzg2ABmTz7kczrAQqMmM=; b=k8mYV8sDFMsGpY+wqIh9yZh42C9MjV58Cws8UQNh2qfLMLzpVh2ASMiXtoZ/0HLIiv V4uFDotNMetsPbclki/X7bAuCxQOrgH2LNkgQPVo3r6ouEbxSpe0thAYIbeLLBXFI/z/ IQFbe6d85WSNqLhc8D3k9Cd51ukCCzcAOE2vpjZt4tfac8bAwNdB9NJw3xHV4TFejnk1 IKH3Q5tIG6MezgRlRBm/t0+hchZ4EmIHGg3tVl3NwFjy/ke1ADG0bz4Ex8ZXdiAfgW7p 18U9Fzc8JZoc/VKnMFS1u3kU4naAVbN90fxKwUVxM7IFGzopWPaac8aqOPgIOV8uol+9 D3Ow==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=DvqF7imc; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id br37-20020a05620a462500b007854460daaasi6329857qkb.729.2024.02.19.01.30.15 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 19 Feb 2024 01:30:15 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=DvqF7imc; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=REJECT sp=NONE dis=NONE) header.from=ibm.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 36AF8384A804 for <ouuuleilei@gmail.com>; Mon, 19 Feb 2024 09:25:23 +0000 (GMT) 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 AA0B8386186F for <gcc-patches@gcc.gnu.org>; Mon, 19 Feb 2024 09:24:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org AA0B8386186F Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=linux.ibm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linux.ibm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org AA0B8386186F 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=1708334671; cv=none; b=RZEHMlxTaaKVqPrEjbP6LPFH4ZwlbI3EJwh32JijeRaSQmwtF46En4MwMwSram8BBHR9AjlfAb2p4SD7bK8qFo1vuk60/kvPSlE6Q3pT0oj8hKNl+jbnHfeORpqnX0utY8QBOHlSpDKwynEi2I/gvPjWCP6ca2pEzY5ASBkK5EM= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1708334671; c=relaxed/simple; bh=TsLDxAeCrAWhNUNkns9/5DhJ7Odg8FO0QZN6GExV6YY=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=fE60vXqK4w1qw4Nbo/FygalYvE18Dn+GFzfQTo0lI8Oo0N1/+GaXYV9JzpGufJObuDXp4sunqIokJWD5yAf6EEnUnRUhae62g23pA9RM8NHElCJJyXs/yaa356tUVq4iKybSgXilUU4w0C3ngjo6U+LmcLcIp3+tNu6YPZftKqY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0360083.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 41J7oaYK006673 for <gcc-patches@gcc.gnu.org>; Mon, 19 Feb 2024 09:24:28 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=from : to : subject : date : message-id : mime-version : content-transfer-encoding; s=pp1; bh=A685V8VfoFzrixuWSIztSpAwjTBW8EnExyYq4c6oLM0=; b=DvqF7imc/sppE6eHx+7bkyTNceqyKhQtFCLCivgfZDHYducdKpPfCGZitMXFwQ9GuOTj t2MYU3Y7HPO/iLB25clnuMu6jeXCB6Ev/zyp9c0/ieCIJxsWY1hEaw+fuziQLQXNXK9e mMLOylPbKOtdlVY85qfG0aeohtUtqbXJLLNgibI2bJWzStXDBZ+F2d+earXY5NBa7bqM yROk2W8eI3V/+HWhFkvHCMK6CvNQdbCans7ozP3D+7mppMUtjPC8vpACg7Qo42PCshi1 v7L3UoiAPKBrL3ho0wOfH8GyL6eWR44+ni9xS+LSQ583YmDgypZH6ok6NfJr/XmkBQKs lw== 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 3wb2p8cdv0-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <gcc-patches@gcc.gnu.org>; Mon, 19 Feb 2024 09:24:28 +0000 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 41J8Xo6u017291 for <gcc-patches@gcc.gnu.org>; Mon, 19 Feb 2024 09:24:26 GMT Received: from smtprelay07.fra02v.mail.ibm.com ([9.218.2.229]) by ppma23.wdc07v.mail.ibm.com (PPS) with ESMTPS id 3wb8mm03uu-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for <gcc-patches@gcc.gnu.org>; Mon, 19 Feb 2024 09:24:26 +0000 Received: from smtpav01.fra02v.mail.ibm.com (smtpav01.fra02v.mail.ibm.com [10.20.54.100]) by smtprelay07.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 41J9OMU719661448 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for <gcc-patches@gcc.gnu.org>; Mon, 19 Feb 2024 09:24:24 GMT Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BE5312004B for <gcc-patches@gcc.gnu.org>; Mon, 19 Feb 2024 09:24:22 +0000 (GMT) Received: from smtpav01.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8F8A420040 for <gcc-patches@gcc.gnu.org>; Mon, 19 Feb 2024 09:24:22 +0000 (GMT) Received: from li-3a824ecc-34fe-11b2-a85c-eae455c7d911.ibm.com.com (unknown [9.171.15.136]) by smtpav01.fra02v.mail.ibm.com (Postfix) with ESMTP for <gcc-patches@gcc.gnu.org>; Mon, 19 Feb 2024 09:24:22 +0000 (GMT) From: Juergen Christ <jchrist@linux.ibm.com> To: gcc-patches@gcc.gnu.org Subject: [PATCH] Do not emulate vectors containing floats. Date: Mon, 19 Feb 2024 10:24:11 +0100 Message-Id: <20240219092411.15161-1-jchrist@linux.ibm.com> X-Mailer: git-send-email 2.39.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: Zi4D8Zj_t9We9VmyGUEAZXOLV2H6-WPe X-Proofpoint-GUID: Zi4D8Zj_t9We9VmyGUEAZXOLV2H6-WPe X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.272,Aquarius:18.0.1011,Hydra:6.0.619,FMLib:17.11.176.26 definitions=2024-02-19_06,2024-02-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 malwarescore=0 mlxlogscore=576 adultscore=0 mlxscore=0 priorityscore=1501 lowpriorityscore=0 phishscore=0 clxscore=1011 bulkscore=0 impostorscore=0 spamscore=0 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2311290000 definitions=main-2402190070 X-Spam-Status: No, score=-13.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE 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 <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791319097047981448 X-GMAIL-MSGID: 1791319097047981448 |
Series |
Do not emulate vectors containing floats.
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Juergen Christ
Feb. 19, 2024, 9:24 a.m. UTC
Fixes various test failures on s390x.
gcc/ChangeLog:
* tree-vect-stmts.cc (vectorizable_operation): Don't emulate floating
point vectors
Signed-off-by: Juergen Christ <jchrist@linux.ibm.com>
Regtested and bootstrapped on x86_64-pc-linux-gnu and
s390x-ibm-linux-gnu. Okay for trunk?
---
gcc/tree-vect-stmts.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/gcc/tree-vect-stmts.cc b/gcc/tree-vect-stmts.cc index 09749ae38174..4164f254fd6e 100644 --- a/gcc/tree-vect-stmts.cc +++ b/gcc/tree-vect-stmts.cc @@ -6756,7 +6756,8 @@ vectorizable_operation (vec_info *vinfo, those through even when the mode isn't word_mode. For ops we have to lower the lowering code assumes we are dealing with word_mode. */ - if ((((code == PLUS_EXPR || code == MINUS_EXPR || code == NEGATE_EXPR) + if (FLOAT_MODE_P (vec_mode) + || (((code == PLUS_EXPR || code == MINUS_EXPR || code == NEGATE_EXPR) || !target_support_p) && maybe_ne (GET_MODE_SIZE (vec_mode), UNITS_PER_WORD)) /* Check only during analysis. */