Message ID | 20230822174031.782900-1-vineetg@rivosinc.com |
---|---|
State | Accepted |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b82d:0:b0:3f2:4152:657d with SMTP id z13csp3785521vqi; Tue, 22 Aug 2023 10:41:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEH+tEaG/FLAL0buZ1i/0aJlpx9xGR3QfiLuIVo0IyCdw3J79Z41bHj2ldKe0iwEtSecwbP X-Received: by 2002:a05:6512:ba9:b0:4f8:7960:f72 with SMTP id b41-20020a0565120ba900b004f879600f72mr8952259lfv.44.1692726065449; Tue, 22 Aug 2023 10:41:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692726065; cv=none; d=google.com; s=arc-20160816; b=Eb4eIpR5fqY7tsnRBQtCp1Jn9yse9ZiyGfwTpZYLUlnzutSaR5zBt/uInvNeeEoK46 K4xZf+tZoep7mCx2lA9NFqwP7siJuU9fI4MaxuFpjG/J9cWgN1ZCDpJURxDN1ZcPaK2M wEPaCJYQv+Bwory7oW/lPjhu3XekP6AKNGGs9pObTVx+8+8mpJmF4aUZ7DIel51UQTdd 45dxQF9QsXaJMoHHrh/MP6om6zbfUfNYiVYCQcnhyjVW2tuLs9yOKLoFRp6xK0FCgJC/ qg8Se9PDcXhmwrFsZdSJRbR/w5HYkGmyuwECsY+Uz3OsheUqNMourKUK2hUcOs4u3PPE +CRw== 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:dkim-signature :dmarc-filter:delivered-to; bh=LLkswebttFiQfrhJ8Chb/8Pw24ITCKteNJphXmQ3Ijw=; fh=1OG5zlpsM3o3Bn5oze9QdqdHmsc/hHTonIQx9qG9HLk=; b=0p9yQA8ePLQffB0YJkqjmal+SiG2ACIRktphTtiPE59Tp2A7B85t4uuX2mQUHnA6Y9 DKdWKCLRNj6UMz/PNAAY6WaLaNBu4qWa5GEQkE4XF7DMhgJM2fT02XOD4Aj0gRD3UkLa PCyQI3aLIPkEqDfxgz7YaOibaItivfdX8twyqt+/43II9GBzY3/tZQuhunWGkv3HsjWC z9maxRUXXckw1RUkEGOW5QFnrpokwcLQG0bO1dLd0iFA1dZCuKRJ0jobwZD+0WywAfXF GUbbxxcX0Qimi6INqEIyHQl66bnoS/B839JX/C0AijmjiseSI655ilHyJjBJxNQFye1H O+eA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=CQEHPWod; 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 (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id d5-20020a056402078500b00529fad81d8esi5186177edy.408.2023.08.22.10.41.05 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Aug 2023 10:41:05 -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=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=CQEHPWod; 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 98F8B385C6E4 for <ouuuleilei@gmail.com>; Tue, 22 Aug 2023 17:40:58 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pg1-x52f.google.com (mail-pg1-x52f.google.com [IPv6:2607:f8b0:4864:20::52f]) by sourceware.org (Postfix) with ESMTPS id 4F7A23858C50 for <gcc-patches@gcc.gnu.org>; Tue, 22 Aug 2023 17:40:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4F7A23858C50 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com Received: by mail-pg1-x52f.google.com with SMTP id 41be03b00d2f7-5694a117254so3270565a12.0 for <gcc-patches@gcc.gnu.org>; Tue, 22 Aug 2023 10:40:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1692726034; x=1693330834; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=LLkswebttFiQfrhJ8Chb/8Pw24ITCKteNJphXmQ3Ijw=; b=CQEHPWodFgDNCx7GfYiCgKd6C5MR3bifArZ25e6ASpj5vcHcogbI7yvOnpHQyaspvc 2Qh0+PC9S1y+KZ4x9+kr2HgF5JH94kID/OuWkMBC+JuUoac0sMaKZ8x59cqSV7TyGEUD Zcss8dWfPAuvW6uQt27qpLaclBA5qXWe4NTXPiq1oP6FDD+cpoWl4fcl9FXBqLlRRUqs KcbgjZK+m1RWDEO9KB01yaDzglkFc8ByQVe5i6NGTt5W01YkKD14z+mpiiEfFRy3WxRr tC9dZfwMyBiFPn6gIXisKX1OiMQx8YrLWymg66HsHnTbCr268mp2oBTeCgjupnmhwEr0 ZtDQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692726034; x=1693330834; 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=LLkswebttFiQfrhJ8Chb/8Pw24ITCKteNJphXmQ3Ijw=; b=aO7FBaKw+qTYIdb+Fi7NgL9EdyRV5X7Od9GJIZGhZz+oZqGOp8X/eN/ek2ZkDZLupy mj8xxOWIHbZr4/J6dASa8UCcCXjnRSdlDxziWztkDx4pQR6r5SN5KLLPuLIbpfPS2Y5A swXq6Nx91Q3WrUBySWzhPoFljZ8LPGSiGuCVp3l9tYvRVZxYde1WOeQzZpKCEvdHqJ+O ZDIIf6Y0dqrm3kVrnMmNW/3EBIt/KuFWbkl9QjhfjGDNUgW0VRUrv2b57FjL+JTmoSjx ZpqvZVI2K40If8YHAnqhuZrHci+EA6bIeFxKS63IW34r1vXmVCZG8WG4UkYz0xiHYdzO Dpjw== X-Gm-Message-State: AOJu0YzmEbPk7MEXYOyJBnJssImgJkP/Cv5HXHpF9Y55X9faf6RKjEY9 Tj4hpslhIqU38RwM2jsYixs0jtZBzsHGgmcBSwm3Ng== X-Received: by 2002:a17:90a:f0cd:b0:26d:4423:5914 with SMTP id fa13-20020a17090af0cd00b0026d44235914mr8938868pjb.14.1692726034133; Tue, 22 Aug 2023 10:40:34 -0700 (PDT) Received: from vineet-framework.hq.rivosinc.com ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id a17-20020a17090abe1100b0026b76edd607sm8216531pjs.15.2023.08.22.10.40.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 22 Aug 2023 10:40:33 -0700 (PDT) From: Vineet Gupta <vineetg@rivosinc.com> To: gcc-patches@gcc.gnu.org, Robin Dapp <rdapp.gcc@gmail.com>, "juzhe . zhong @ rivai . ai" <juzhe.zhong@rivai.ai> Cc: kito.cheng@gmail.com, Jeff Law <jeffreyalaw@gmail.com>, Palmer Dabbelt <palmer@rivosinc.com>, gnu-toolchain@rivosinc.com, Vineet Gupta <vineetg@rivosinc.com> Subject: [PATCH] RISC-V: output Autovec params explicitly in --help ... Date: Tue, 22 Aug 2023 10:40:31 -0700 Message-Id: <20230822174031.782900-1-vineetg@rivosinc.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-10.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, 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 <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 Sender: "Gcc-patches" <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1774951926939924068 X-GMAIL-MSGID: 1774951926939924068 |
Series |
RISC-V: output Autovec params explicitly in --help ...
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | success | Github commit url |
Commit Message
Vineet Gupta
Aug. 22, 2023, 5:40 p.m. UTC
... otherwise user has no clue what -param to actually change
gcc/ChangeLog:
* config/riscv/riscv.opt: Add --param names
riscv-autovec-preference and riscv-autovec-lmul
Signed-off-by: Vineet Gupta <vineetg@rivosinc.com>
---
gcc/config/riscv/riscv.opt | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
Comments
On 8/22/23 11:40, Vineet Gupta wrote: > ... otherwise user has no clue what -param to actually change > > gcc/ChangeLog: > * config/riscv/riscv.opt: Add --param names > riscv-autovec-preference and riscv-autovec-lmul OK jeff
On Tue, 22 Aug 2023 10:59:35 PDT (-0700), gcc-patches@gcc.gnu.org wrote: > > > On 8/22/23 11:40, Vineet Gupta wrote: >> ... otherwise user has no clue what -param to actually change >> >> gcc/ChangeLog: >> * config/riscv/riscv.opt: Add --param names >> riscv-autovec-preference and riscv-autovec-lmul > OK We should probably put them in invoke.texi as well (and anything else we're missing that's been added recently).
On 8/22/23 11:07, Palmer Dabbelt wrote: > We should probably put them in invoke.texi as well (and anything else > we're missing that's been added recently). Looks like I'd pushed the patch already. A whole bunch of them are missing, so guess that can happen seperately. -Vineet
diff --git a/gcc/config/riscv/riscv.opt b/gcc/config/riscv/riscv.opt index 6304efebfd50..a962ea8f9d41 100644 --- a/gcc/config/riscv/riscv.opt +++ b/gcc/config/riscv/riscv.opt @@ -277,7 +277,7 @@ Always inline subword atomic operations. Enum Name(riscv_autovec_preference) Type(enum riscv_autovec_preference_enum) -The RISC-V auto-vectorization preference: +Valid arguments to -param=riscv-autovec-preference=: EnumValue Enum(riscv_autovec_preference) String(none) Value(NO_AUTOVEC) @@ -294,7 +294,7 @@ Target RejectNegative Joined Enum(riscv_autovec_preference) Var(riscv_autovec_pr Enum Name(riscv_autovec_lmul) Type(enum riscv_autovec_lmul_enum) -The RVV possible LMUL: +The RVV possible LMUL (-param=riscv-autovec-lmul=): EnumValue Enum(riscv_autovec_lmul) String(m1) Value(RVV_M1)