From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb36.google.com (mail-yb1-xb36.google.com [IPv6:2607:f8b0:4864:20::b36]) by sourceware.org (Postfix) with ESMTPS id 8E3543858C36 for ; Mon, 26 Jun 2023 01:33:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8E3543858C36 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-yb1-xb36.google.com with SMTP id 3f1490d57ef6-bad0c4f6f50so4294615276.1 for ; Sun, 25 Jun 2023 18:33:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687743186; x=1690335186; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=hmKHewjl6fJa2a1TNjomEGYzZTI8OeLFjhcxj6z36KY=; b=oEvum27fI/JB/vI/qj7ou6P/J4NaH5fH9RB+HXMxr0uks7MqOwT+c1cONGjF9kYnYd mP0GHJWMVdTTq7jwZ179fwsfLuFi7hWyPBR78XQhdGoKs5jTs5Yq6jDkwyvPYFq2dqj5 5rMKQW3u0GLCeclXfzZo2XBeViendMmKukeQ4tKDIxyyYZxp//oV9UFM1Yr1qk3x+puM O/CSU84ruFer6b/ZzIhVTVjd+MokMrw/RQUeSbt2NiVJSizwgb1asDcSwRt6A1+b/p8D XspZ9hV8TLSRRgLrvB3fKhCrWgRsurZfcaP/PiAlXRT5FsrTZIcWZYH4gxarfZAw+zmG dHrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687743186; x=1690335186; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=hmKHewjl6fJa2a1TNjomEGYzZTI8OeLFjhcxj6z36KY=; b=OFaDWvdMSdnpyMtBZK+nLh8CCxORIf066UJ68Pv1mzOuI2GObaCcJc6a2YyBnEzO24 DNi1yqORg45A6i5V6PLrjdhis64okWT805H+ioNLNDVlLvuOhD3p++6ntHYHBuJoLHYm iuurFH+5wJ2KDG4OcVde7WRhzQcKDQ9asim9TPx1DyjRmTRoNqIcvv2CHl9g0hVoXng5 YPaw68WdA3/+j42sqh1WQiz5ycy7zMmSK76BCdUitnddyXdu9PtsBu94VJqXbUYIuUIW WfqOzk2bxDXI1f2f1uv7v0s0SSamWCJmvuHBNjbyz2LofGuSupcmye4+ey2P58QnGoSm Ywzw== X-Gm-Message-State: AC+VfDx73bKz59BvEpavDF7ksebkjEpAnfVBEqP0hJmovnwmtzLeQ54Z KJWPc2Gr/xhN+/IUVBogEdwMIADS0MTQXKtd0nA= X-Google-Smtp-Source: ACHHUZ5hkObHbCyPLXdTE0sKM2Mitc4+fhAGCgRyl2dM0zhUG1nMTpee+W7bb6YLcJ9kY/mQ/AgUB+pIYA05knhsLaE= X-Received: by 2002:a25:d42:0:b0:c10:72a7:6eb6 with SMTP id 63-20020a250d42000000b00c1072a76eb6mr6962480ybn.9.1687743185743; Sun, 25 Jun 2023 18:33:05 -0700 (PDT) MIME-Version: 1.0 References: <20230626013105.18788-1-hongtao.liu@intel.com> <20230626013105.18788-3-hongtao.liu@intel.com> In-Reply-To: <20230626013105.18788-3-hongtao.liu@intel.com> From: Hongtao Liu Date: Mon, 26 Jun 2023 09:32:54 +0800 Message-ID: Subject: Re: [PATCH 3/3] [aarch64] Adjust testcase to match assembly output after r14-2007. To: richard.sandiford@arm.com Cc: gcc-patches@gcc.gnu.org, thiago.bauermann@linaro.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,KAM_SHORT,RCVD_IN_DNSWL_NONE,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 List-Id: On Mon, Jun 26, 2023 at 9:31=E2=80=AFAM liuhongt via Gcc-patches wrote: > > The new assembly looks better than original one, so I adjust those testca= ses. > Ok for trunk? > > gcc/testsuite/ChangeLog: > > PR tree-optimization/110371 > PR tree-optimization/110018 > * gcc.target/aarch64/sve/unpack_fcvt_signed_1.c: Scan scvt + > sxtw instead of scvt + zip1 + zip2. > * gcc.target/aarch64/sve/unpack_fcvt_unsigned_1.c: Scan scvt + > uxtw instead of ucvtf + zip1 + zip2. > --- > gcc/testsuite/gcc.target/aarch64/sve/unpack_fcvt_signed_1.c | 6 +++--- > .../gcc.target/aarch64/sve/unpack_fcvt_unsigned_1.c | 5 ++--- > 2 files changed, 5 insertions(+), 6 deletions(-) > > diff --git a/gcc/testsuite/gcc.target/aarch64/sve/unpack_fcvt_signed_1.c = b/gcc/testsuite/gcc.target/aarch64/sve/unpack_fcvt_signed_1.c > index 0f96dc2ff00..5edc288ce35 100644 > --- a/gcc/testsuite/gcc.target/aarch64/sve/unpack_fcvt_signed_1.c > +++ b/gcc/testsuite/gcc.target/aarch64/sve/unpack_fcvt_signed_1.c > @@ -10,6 +10,6 @@ unpack_double_int_plus8 (double *d, int32_t *s, int siz= e) > d[i] =3D s[i] + 8; > } > > -/* { dg-final { scan-assembler-times {\tzip1\tz[0-9]+\.s, z[0-9]+\.s, z[= 0-9]+\.s\n} 1 } } */ > -/* { dg-final { scan-assembler-times {\tzip2\tz[0-9]+\.s, z[0-9]+\.s, z[= 0-9]+\.s\n} 1 } } */ > -/* { dg-final { scan-assembler-times {\tscvtf\tz[0-9]+\.d, p[0-7]/m, z[0= -9]+\.s\n} 2 } } */ > +/* { dg-final { scan-assembler-times {\tscvtf\tz[0-9]+\.d, p[0-7]/m, z[0= -9]+\.d\n} 1 } } */ > +/* { dg-final { scan-assembler-times {\tsxtw\tz[0-9]+\.d, p[0-7]/m, z[0-= 9]+\.d\n} 1 } } */ > + > diff --git a/gcc/testsuite/gcc.target/aarch64/sve/unpack_fcvt_unsigned_1.= c b/gcc/testsuite/gcc.target/aarch64/sve/unpack_fcvt_unsigned_1.c > index 70465f91eba..ecd72176177 100644 > --- a/gcc/testsuite/gcc.target/aarch64/sve/unpack_fcvt_unsigned_1.c > +++ b/gcc/testsuite/gcc.target/aarch64/sve/unpack_fcvt_unsigned_1.c > @@ -10,6 +10,5 @@ unpack_double_int_plus9 (double *d, uint32_t *s, int si= ze) > d[i] =3D (double) (s[i] + 9); > } > > -/* { dg-final { scan-assembler-times {\tzip1\tz[0-9]+\.s, z[0-9]+\.s, z[= 0-9]+\.s\n} 1 } } */ > -/* { dg-final { scan-assembler-times {\tzip2\tz[0-9]+\.s, z[0-9]+\.s, z[= 0-9]+\.s\n} 1 } } */ > -/* { dg-final { scan-assembler-times {\tucvtf\tz[0-9]+\.d, p[0-7]/m, z[0= -9]+\.s\n} 2 } } */ > +/* { dg-final { scan-assembler-times {\tscvtf\tz[0-9]+\.d, p[0-7]/m, z[0= -9]+\.d\n} 1 } } */ > +/* { dg-final { scan-assembler-times {\tuxtw\tz[0-9]+\.d, p[0-7]/m, z[0-= 9]+\.d\n} 1 } } */ > -- > 2.39.1.388.g2fc9e9ca3c > -- BR, Hongtao