From patchwork Mon Mar 27 10:37:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?6ZmI6YC46L2p?= X-Patchwork-Id: 75339 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp1407833vqo; Mon, 27 Mar 2023 03:37:48 -0700 (PDT) X-Google-Smtp-Source: AKy350ZOfeG8njyLYtivNfPhAwTZ2eYhAYG00FRFgbW5YiovhI7Rm37xPHqQLAu6/WKSgq5G7GMW X-Received: by 2002:a17:906:18a9:b0:92f:e4c5:5a28 with SMTP id c9-20020a17090618a900b0092fe4c55a28mr12767684ejf.54.1679913468131; Mon, 27 Mar 2023 03:37:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679913468; cv=none; d=google.com; s=arc-20160816; b=KFVHbdc3eB20IdFwM54bnMrr17yg7QITSLAdh4n/Z0U+EpOkSd8jLgO0FWnYk7WUo4 4Ag7RayEOnDSGG/Ex3u1KksncWioWFvMM0+cy5ar/9s+p6Rh05YRztQxTBjoFia3p5wF Jh9UuOgN1BWklxo/Bs4k/aZGQi2Wy13JAZM0/U+dpGjQULCtaRkKTMD63cJXowbYzgy9 J9gHM6FZzslVfNWYje+dzvbv5I42v86iIrOgFcUtjL2v8rLUjKzaf+89VbALXdgS2s/O BUMtyOLrhH/QBOtXjDhTazpoRwhUMIRrVXl6QxD0H+k+8osd2REIjCKbOB6SEURcd6si CTBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:cc:to:from:dmarc-filter :delivered-to; bh=z4LJ+yhzszOC6jkgUAeDwVsJYxlOa7sQK29+MIQmKdc=; b=zjI9KJWS5MAysz5dm+V2OlshS1CkQCWIhwnoZs6aFGZFkqygEj1bhyF8NIxTBkmWsq gnt270uWd1bbZNRQfULj5dhnAtD0IbTymtQNtO4081xhP4HRcpK4B91lYSWoCcuEQdnI E4nWa+/fzrfw0Kv5BOChJaPXLMlt6dQUMRBdfylzkrWkrVmK744b6YcQ8B3L7xSs+YOm bpLQNr/ykk3xoBPjB7PKrk9yO9yekYYYRD6pm/0f5IgaDIqq3Rvn6dmDfedrPtWpP++z 1VHwiMSPUILl62I/+J0xcx5ePstTpIeNV/dl6oKHdKK1xN9eZwsdklr8+5pQHt57QHDj hEAg== ARC-Authentication-Results: i=1; mx.google.com; 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" Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id ca26-20020a170906a3da00b008db44ebf302si25027656ejb.133.2023.03.27.03.37.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Mar 2023 03:37:48 -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; 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" Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 1B5A738582A1 for ; Mon, 27 Mar 2023 10:37:44 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from cstnet.cn (smtp25.cstnet.cn [159.226.251.25]) by sourceware.org (Postfix) with ESMTP id 90CC13858D39 for ; Mon, 27 Mar 2023 10:37:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 90CC13858D39 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=iscas.ac.cn Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=iscas.ac.cn Received: from shellder.felixc.at (unknown [47.251.42.28]) by APP-05 (Coremail) with SMTP id zQCowADX32fWcSFkYNbJCg--.7221S2; Mon, 27 Mar 2023 18:37:12 +0800 (CST) From: chenyixuan@iscas.ac.cn To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, andrew@sifive.com, oriachiuan@gmail.com, jiawei@iscas.ac.cn, shihua@iscas.ac.cn, shiyulong@iscas.ac.cn, Yixuan Chen Subject: [PATCH] Changed vector size Date: Mon, 27 Mar 2023 18:37:07 +0800 Message-Id: <20230327103707.1253143-1-chenyixuan@iscas.ac.cn> X-Mailer: git-send-email 2.40.0 MIME-Version: 1.0 X-CM-TRANSID: zQCowADX32fWcSFkYNbJCg--.7221S2 X-Coremail-Antispam: 1UD129KBjvdXoW7Wr1UWFyxur1fJry3Ww48JFb_yoWDJFgEg3 48Zrs0qr4UAF1Fyr1kJrWUAFWIvF4DXrWSqws5KFsrXF1qqa12yr4kWFy0vF18Cry8XFy3 KF4aqrWYgrZ8WjkaLaAFLSUrUUUUjb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbxxFF20E14v26r4j6ryUM7CY07I20VC2zVCF04k26cxKx2IYs7xG 6rWj6s0DM7CIcVAFz4kK6r1j6r18M28lY4IEw2IIxxk0rwA2F7IY1VAKz4vEj48ve4kI8w A2z4x0Y4vE2Ix0cI8IcVAFwI0_JFI_Gr1l84ACjcxK6xIIjxv20xvEc7CjxVAFwI0_Gr0_ Cr1l84ACjcxK6I8E87Iv67AKxVWxJr0_GcWl84ACjcxK6I8E87Iv6xkF7I0E14v26rxl6s 0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE6c02F40Ex7xfMcIj6xII jxv20xvE14v26r1Y6r17McIj6I8E87Iv67AKxVWUJVW8JwAm72CE4IkC6x0Yz7v_Jr0_Gr 1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7M4kE6xkIj40Ew7xC0wCY 02Avz4vE174l42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4 xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r1q6r43 MIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I 0E14v26r4j6F4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI42IY6I8E87Iv67AKxVWU JVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjfUUK ZXUUUUU X-Originating-IP: [47.251.42.28] X-CM-SenderInfo: xfkh05pl0xt046lvutnvoduhdfq/ X-Spam-Status: No, score=-13.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, SPF_HELO_PASS, 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: , Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761516944844343402?= X-GMAIL-MSGID: =?utf-8?q?1761516944844343402?= From: Yixuan Chen Observed a vint type "ABS_EXPR" followed by extra 3 int type "ABS_EXPR". If want to test absolute value optimization for vector, maybe don't need 4 times. gcc/testsuite/ChangeLog: 2023-03-27 Yixuan Chen * g++.dg/pr94920.C: Declare the vector size as long as int. --- gcc/testsuite/g++.dg/pr94920.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/g++.dg/pr94920.C b/gcc/testsuite/g++.dg/pr94920.C index 126b00478d2..498bef93b3a 100644 --- a/gcc/testsuite/g++.dg/pr94920.C +++ b/gcc/testsuite/g++.dg/pr94920.C @@ -2,7 +2,7 @@ /* { dg-do compile } */ /* { dg-options "-O2 -Wno-psabi -fdump-tree-optimized" } */ -typedef int __attribute__((vector_size(4*sizeof(int)))) vint; +typedef int __attribute__((vector_size(sizeof(int)))) vint; /* Same form as PR. */ __attribute__((noipa)) unsigned int foo(int x) {