From patchwork Wed Sep 4 00:17:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Pinski X-Patchwork-Id: 97019 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8C52A385F027 for ; Wed, 4 Sep 2024 00:19:59 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mx0a-0031df01.pphosted.com (mx0a-0031df01.pphosted.com [205.220.168.131]) by sourceware.org (Postfix) with ESMTPS id 36C7B385C6D1 for ; Wed, 4 Sep 2024 00:17:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 36C7B385C6D1 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=quicinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=quicinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 36C7B385C6D1 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=205.220.168.131 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725409135; cv=none; b=hXqQekjAyVT9cT88iOpOBn5k8I4wkVvc03fbCCTmxdGGeEzgnj9JvOZjod2bjW97+anszFjke9+W5oYuehlJcumjG4RR2zJntxgTKl41KGtX7TMvNQ4SUN77bztPr6Dp7goeXYCGACRXIQSXo4CsJQI+R6TjEx/pEfkpbZIg+dE= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1725409135; c=relaxed/simple; bh=vUxNQahBxYJqQYmZG7ZZjXyzblA65i5sJrTJVYyoTRQ=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=dImnKwxhHZdtkF3Vp+0iA+b6jCmcIJxbbwQ2MCHpuUYdz1qOtKAbZHl1aPpiNXbR1xjnUmXMJbz5ih3Zq/9QCEJ+XcNG8rCzzJQ0AE+6L+angVW8nfkxu2SiteyUbijFjPxPDmrcg6RFkDNSGEaM4j981gKuTqp0Ft0sYW5l/zY= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from pps.filterd (m0279862.ppops.net [127.0.0.1]) by mx0a-0031df01.pphosted.com (8.18.1.2/8.18.1.2) with ESMTP id 483M6GDU025039 for ; Wed, 4 Sep 2024 00:17:23 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=quicinc.com; h= cc:content-transfer-encoding:content-type:date:from:message-id :mime-version:subject:to; s=qcppdkim1; bh=4Y5AePJe7NHoJfnTwlZEBg OcxLipRVqdVWd8tPF6C20=; b=Rd/7yjT4arcs4ltYU13I2GuOPF5Rbmdz5FKske FWO0I+GfY6/+WujfYJK5vFHFp6mYM1a7IAAq87yZ0vXMjHjJM4iTW9cdvni4Qdod e6b+wgIpuQN07hJg2bwBUAZVv5VOW1lpCTWkEoRfqn8063F0tS2FX2y3JC7Q+cTU XxjCN4hPdeo5ASSq24eYkVlw+dfBoRKw63O5C9w6LqlbdTpKa0Pu7lIYCtHFtxoY UnSShaEgQj/5e40ohI2bV+vt7dZKHwzAk9rHJVfKWcpi52Y+PjiIVJOhSnmW7fxc hBoKaqvz6poL4MGjnYxwFQcDIgIRl/wNPr9uB5E1KS/ttN7g== Received: from nasanppmta01.qualcomm.com (i-global254.qualcomm.com [199.106.103.254]) by mx0a-0031df01.pphosted.com (PPS) with ESMTPS id 41buxf8w66-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 04 Sep 2024 00:17:23 +0000 (GMT) Received: from nasanex01c.na.qualcomm.com (nasanex01c.na.qualcomm.com [10.45.79.139]) by NASANPPMTA01.qualcomm.com (8.18.1.2/8.18.1.2) with ESMTPS id 4840HMjg031699 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Wed, 4 Sep 2024 00:17:22 GMT Received: from hu-apinski-lv.qualcomm.com (10.49.16.6) by nasanex01c.na.qualcomm.com (10.45.79.139) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.9; Tue, 3 Sep 2024 17:17:22 -0700 From: Andrew Pinski To: CC: Andrew Pinski Subject: [PUSHED] aarch64: Fix testcase vec-init-22-speed.c [PR116589] Date: Tue, 3 Sep 2024 17:17:12 -0700 Message-ID: <20240904001712.2833670-1-quic_apinski@quicinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Originating-IP: [10.49.16.6] X-ClientProxiedBy: nalasex01a.na.qualcomm.com (10.47.209.196) To nasanex01c.na.qualcomm.com (10.45.79.139) X-QCInternal: smtphost X-Proofpoint-Virus-Version: vendor=nai engine=6200 definitions=5800 signatures=585085 X-Proofpoint-GUID: CUIH91aZfTYdD99jNd0_GYpEuiN5_Dh1 X-Proofpoint-ORIG-GUID: CUIH91aZfTYdD99jNd0_GYpEuiN5_Dh1 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.293,Aquarius:18.0.1039,Hydra:6.0.680,FMLib:17.12.60.29 definitions=2024-09-03_12,2024-09-03_01,2024-09-02_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 malwarescore=0 adultscore=0 clxscore=1015 mlxlogscore=591 lowpriorityscore=0 phishscore=0 bulkscore=0 mlxscore=0 impostorscore=0 priorityscore=1501 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.19.0-2407110000 definitions=main-2409040000 X-Spam-Status: No, score=-14.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_NONE, TIME_LIMIT_EXCEEDED, T_SCC_BODY_TEXT_LINE autolearn=unavailable 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~patchwork=sourceware.org@gcc.gnu.org For this testcase, the trunk produces: ``` f_s16: fmov s31, w0 fmov s0, w1 ``` While the testcase was expecting what was produced in GCC 14: ``` f_s16: sxth w0, w0 sxth w1, w1 fmov d31, x0 fmov d0, x1 ``` After r15-1575-gea8061f46a30 the code was: ``` dup v31.4h, w0 dup v0.4h, w1 ``` But when ext-dce was added with r15-1901-g98914f9eba5f19, we get the better code generation now and only fmov's. Pushed as obvious after running the testcase. gcc/testsuite/ChangeLog: * gcc.target/aarch64/vec-init-22-speed.c: Update scan for better code gen. Signed-off-by: Andrew Pinski --- gcc/testsuite/gcc.target/aarch64/vec-init-22-speed.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/aarch64/vec-init-22-speed.c b/gcc/testsuite/gcc.target/aarch64/vec-init-22-speed.c index 993ef8c4161..6edc82831a0 100644 --- a/gcc/testsuite/gcc.target/aarch64/vec-init-22-speed.c +++ b/gcc/testsuite/gcc.target/aarch64/vec-init-22-speed.c @@ -7,6 +7,6 @@ #include "vec-init-22.h" -/* { dg-final { scan-assembler-times {\tfmov\td[0-9]+, x[0-9]+} 2 } } */ +/* { dg-final { scan-assembler-times {\tfmov\ts[0-9]+, w[0-9]+} 2 } } */ /* { dg-final { scan-assembler-times {\tins\tv[0-9]+\.h\[[1-3]\], w[0-9]+} 6 } } */ /* { dg-final { scan-assembler {\tzip1\tv[0-9]+\.8h, v[0-9]+\.8h, v[0-9]+\.8h} } } */