From patchwork Thu Aug 24 02:57:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thiago Jung Bauermann X-Patchwork-Id: 136744 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a7d1:0:b0:3f2:4152:657d with SMTP id p17csp852696vqm; Wed, 23 Aug 2023 19:58:00 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHQ1SpBpG49NNXSO6WgeNLsceDA6uyiclxGFF7PI21oUJPcO26kFfn5v8Mz8ttWgPW1Rjmd X-Received: by 2002:a17:906:1010:b0:9a1:c370:1af3 with SMTP id 16-20020a170906101000b009a1c3701af3mr4785155ejm.16.1692845880529; Wed, 23 Aug 2023 19:58:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692845880; cv=none; d=google.com; s=arc-20160816; b=zS72jhTXtZm7gTGWGZBmhNwRmJOQf3SHoraf+TZCioYvABw/u2yLeKURJhfoc0DqPQ lr4zyRlRDeLUc7mKXdg9HU3Q6+BZfnY9pl0FoNqXmvMr1sshvfIjmGNob2nrMpK8xyzX Lnoi4jO4heTmmn6F7Y+GN5HPhpaSOZGGG+oF2sQrBEDFTOZ/2YgNDQROsvSjG36zsm+k C6ZsZHFYKW151yiVbzUdq/ufhFqnbJOLjXCTNEcZAbwSx4FXgSRbsyqmDryu3w3gQeET Nfh1BPBtsfqdFYCFv6jentqM608MAC8xAETt7H6mcblTdZXsI36/SJFCKUWwOIyuxIoQ ElKg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=Gt25vlD80nPvFpVPt5gE9SnnT6n6byMHS75XcL8E41Q=; fh=0ARonQAEJeQJmcTjb/1iYJrs+rkLkXNI7Er+d38N0hk=; b=N7taqe0FgCOxifQ/6DPOep0PRXrjdQHHLNC4rRQIwKw1uaHyhSSHJX+OuWx4/ILiJJ JsMugDiDJITptnVDZxOJKsckfPM1UiVbLNNWyBLO3mSTKrBzJKQb1r4muC+XzokhLsGE Yx6/yS1yAaVX8DHl0snh+i7d9dMLW3LXRqLTo2vfH8qKRhXCGbEDT0RnnWjdd5wuoBOu DiLTu6IvKRyvP2Rw/pWSFSNu7Zyh1hxEncx2sIFTGxgTy5Fz2UCKjME7MRIo1GbM/iF/ GQU5UzpGxEYpPS7KK9rd2Hn0IMEFuVbYNC0RXkGaWgITQRfwqPXvjnw7Icbx5qJcCuYq HXhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=KLFRz6Ji; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id re2-20020a170906d8c200b0099cf91fe29esi9850458ejb.72.2023.08.23.19.58.00 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Aug 2023 19:58:00 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) client-ip=2620:52:3:1:0:246e:9693:128c; Authentication-Results: mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=KLFRz6Ji; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 2620:52:3:1:0:246e:9693:128c as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 382E5385772D for ; Thu, 24 Aug 2023 02:57:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 382E5385772D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692845879; bh=Gt25vlD80nPvFpVPt5gE9SnnT6n6byMHS75XcL8E41Q=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=KLFRz6Jin/N/8ZWQA4KucKcsyRWa7zlJGL2UQ07+OyJWOvgTjQ/awR0gj84Hd1fuS a0pXdHLkEh1pBdmJ2DjuEk3hT9/wzqGyPMNVGFXjQmuoXAgyCyqje69S949UhX5wkp lWWSBdvO1eurThL7MUKnS0JqivrCbWHPvli4PEgk= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-oi1-x234.google.com (mail-oi1-x234.google.com [IPv6:2607:f8b0:4864:20::234]) by sourceware.org (Postfix) with ESMTPS id BA2CD3858C01 for ; Thu, 24 Aug 2023 02:57:10 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BA2CD3858C01 Received: by mail-oi1-x234.google.com with SMTP id 5614622812f47-3a741f46fadso4582132b6e.0 for ; Wed, 23 Aug 2023 19:57:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692845829; x=1693450629; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Gt25vlD80nPvFpVPt5gE9SnnT6n6byMHS75XcL8E41Q=; b=h7fBKHUMdrwI+tZ3YwYu88dgB/C33QquDK136ykz0RAWiAHs8If168lv2hYh7W33wD S77dm7ZK2NM9mQMwiRKhSU9b1dhrpw3OnEXEMhj8adlTQn/8StbXf7WMZUzXvFIab2SB 4XxL8BvXfH4zamhxNo9ne48oGN091XnOJxLG7+ltbYE98v56r3z1ruxtJI/vxShIUh8c 4IpSaO4Y0fb0rVtaYwDqh7HKmPpIsdpH+pnGzCoOcqUlKpPEW6Qaa/ITGULG68HFmwBP /sWo/mDRP4aDxncdHqz1oNwvO4/M32MaL9qyRcl1RMyIBBU3QiPkOKdTGV45NAVt96QC 78Aw== X-Gm-Message-State: AOJu0YxmdzZDG07r8nO0EqBDy1U7lm95jyN12zB/+jua9g+/Dlb/wrnR qRnA35LQLJkGDkoqiYapZ2crdSdzaLSLHoap8qc= X-Received: by 2002:a05:6808:4284:b0:3a1:d1d9:d59c with SMTP id dq4-20020a056808428400b003a1d1d9d59cmr15889898oib.33.1692845829728; Wed, 23 Aug 2023 19:57:09 -0700 (PDT) Received: from localhost ([2804:14d:7e39:8470:a7a3:9c65:8412:afd6]) by smtp.gmail.com with ESMTPSA id e8-20020aca2308000000b003a791c0cc03sm6697918oie.1.2023.08.23.19.57.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Aug 2023 19:57:09 -0700 (PDT) To: gcc-patches@gcc.gnu.org Cc: Prathamesh Kulkarni , Andrew Pinski Subject: [PATCH] testsuite: aarch64: Adjust SVE ACLE tests to new generated code Date: Wed, 23 Aug 2023 23:57:06 -0300 Message-ID: <20230824025706.192064-1-thiago.bauermann@linaro.org> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-11.7 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_PASS, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Thiago Jung Bauermann via Gcc-patches From: Thiago Jung Bauermann Reply-To: Thiago Jung Bauermann Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1775077562060457510 X-GMAIL-MSGID: 1775077562060457510 Since commit e7a36e4715c7 "[PATCH] RISC-V: Support simplify (-1-x) for vector." these tests fail on aarch64-linux: === g++ tests === Running g++:g++.target/aarch64/sve/acle/aarch64-sve-acle-asm.exp ... FAIL: gcc.target/aarch64/sve/acle/asm/subr_s8.c -std=gnu++98 -O2 -fno-schedule-insns -DCHECK_ASM --save-temps -DTEST_FULL check-function-bodies subr_m1_s8_m FAIL: gcc.target/aarch64/sve/acle/asm/subr_s8.c -std=gnu++98 -O2 -fno-schedule-insns -DCHECK_ASM --save-temps -DTEST_OVERLOADS check-function-bodies subr_m1_s8_m FAIL: gcc.target/aarch64/sve/acle/asm/subr_u8.c -std=gnu++98 -O2 -fno-schedule-insns -DCHECK_ASM --save-temps -DTEST_FULL check-function-bodies subr_m1_u8_m FAIL: gcc.target/aarch64/sve/acle/asm/subr_u8.c -std=gnu++98 -O2 -fno-schedule-insns -DCHECK_ASM --save-temps -DTEST_OVERLOADS check-function-bodies subr_m1_u8_m === gcc tests === Running gcc:gcc.target/aarch64/sve/acle/aarch64-sve-acle-asm.exp ... FAIL: gcc.target/aarch64/sve/acle/asm/subr_s8.c -std=gnu90 -O2 -fno-schedule-insns -DCHECK_ASM --save-temps -DTEST_FULL check-function-bodies subr_m1_s8_m FAIL: gcc.target/aarch64/sve/acle/asm/subr_s8.c -std=gnu90 -O2 -fno-schedule-insns -DCHECK_ASM --save-temps -DTEST_OVERLOADS check-function-bodies subr_m1_s8_m FAIL: gcc.target/aarch64/sve/acle/asm/subr_u8.c -std=gnu90 -O2 -fno-schedule-insns -DCHECK_ASM --save-temps -DTEST_FULL check-function-bodies subr_m1_u8_m FAIL: gcc.target/aarch64/sve/acle/asm/subr_u8.c -std=gnu90 -O2 -fno-schedule-insns -DCHECK_ASM --save-temps -DTEST_OVERLOADS check-function-bodies subr_m1_u8_m Andrew Pinski's analysis in PR testsuite/111071 is that the new code is better and the testcase should be updated. I also asked Prathamesh Kulkarni in private and he agreed. Here is the update. With this change, all tests in gcc.target/aarch64/sve/acle/aarch64-sve-acle-asm.exp pass on aarch64-linux. gcc/testsuite/ PR testsuite/111071 * gcc/testsuite/gcc.target/aarch64/sve/acle/asm/subr_s8.c: Adjust to new code. * gcc/testsuite/gcc.target/aarch64/sve/acle/asm/subr_u8.c: Likewise. Suggested-by: Andrew Pinski --- gcc/testsuite/gcc.target/aarch64/sve/acle/asm/subr_s8.c | 3 +-- gcc/testsuite/gcc.target/aarch64/sve/acle/asm/subr_u8.c | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/gcc/testsuite/gcc.target/aarch64/sve/acle/asm/subr_s8.c b/gcc/testsuite/gcc.target/aarch64/sve/acle/asm/subr_s8.c index b9615de6655f..3e521bc9ae32 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/acle/asm/subr_s8.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/acle/asm/subr_s8.c @@ -76,8 +76,7 @@ TEST_UNIFORM_Z (subr_1_s8_m_untied, svint8_t, /* ** subr_m1_s8_m: -** mov (z[0-9]+\.b), #-1 -** subr z0\.b, p0/m, z0\.b, \1 +** not z0\.b, p0/m, z0\.b ** ret */ TEST_UNIFORM_Z (subr_m1_s8_m, svint8_t, diff --git a/gcc/testsuite/gcc.target/aarch64/sve/acle/asm/subr_u8.c b/gcc/testsuite/gcc.target/aarch64/sve/acle/asm/subr_u8.c index 65606b6dda03..4922bdbacc47 100644 --- a/gcc/testsuite/gcc.target/aarch64/sve/acle/asm/subr_u8.c +++ b/gcc/testsuite/gcc.target/aarch64/sve/acle/asm/subr_u8.c @@ -76,8 +76,7 @@ TEST_UNIFORM_Z (subr_1_u8_m_untied, svuint8_t, /* ** subr_m1_u8_m: -** mov (z[0-9]+\.b), #-1 -** subr z0\.b, p0/m, z0\.b, \1 +** not z0\.b, p0/m, z0\.b ** ret */ TEST_UNIFORM_Z (subr_m1_u8_m, svuint8_t,