From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ua1-x92d.google.com (mail-ua1-x92d.google.com [IPv6:2607:f8b0:4864:20::92d]) by sourceware.org (Postfix) with ESMTPS id 467A13858C36 for ; Mon, 28 Aug 2023 03:48:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 467A13858C36 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-ua1-x92d.google.com with SMTP id a1e0cc1a2514c-7a4ee7f9c37so237115241.0 for ; Sun, 27 Aug 2023 20:48:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693194498; x=1693799298; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=gL42MIvjgvPIqd7bXF1YCSYewopDbJMbtTCw//d3cLk=; b=exhNR3v52qD1aHJLN7cw/BO97qzDsKA+IjZn6ffeN3EQ/CVBfuAdj941vvOG1ONBJt W6WLK4wETM4MTBFy/kvpTsBpT6ShqjYZH+n8PNR9umfFm70i8pJLx4hASr569gyeat0c ZR0iWH62Y/G8HZtcm9DUaMmlTKa5dCgyNa1/sdgV/gUCxBwDxW1ZS3W1JS4KcbAZKeZJ 9e08n2ELz98e1yHwOEPB5hZEqnVwXE55FtMcRy6XwFral7FKror9gDXFfP7n0fQg8l3m ZIbX+tOVEnkPnrsaUE69IwZngEcI1chpAMdxWU7OAGEH9C+HJzqAr4swAmUZR6LXftuD dXsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693194498; x=1693799298; h=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=gL42MIvjgvPIqd7bXF1YCSYewopDbJMbtTCw//d3cLk=; b=klXeN8yzl3Cmh36ZFGL7+QAZWOhoPogTtv1hf1cNNgzZM08auPrkvoYjIeCzph5mog tp/GrbvEL8BGCCah6Aei+48E2u06qL4qa7CtatkZiyfuinwrDs5IyyCFrLPKfXL7b6el 6NpjwuCVZg2Zc1xIJ8UvgWM6knUFWMnNslSr3YxkMD4QvJ94xFuokCS5x4ZvruHboVU9 DaDCKh67re1Lgje3YC4qpYEIUF35KBT+4Lzpz9vdxTvw1gWy+B51NPh2cI8Ia3f2xCFY CslN1YR/7KM2l66SqZPqb2RHw7JUS84Tlga9IVJb4rsOwcKPhWJAdOpQkDWB9lK+suT1 b6WA== X-Gm-Message-State: AOJu0Yx8jMfjt2hI7lI49QJjBsBSxXKiChcSSctElgXgY5PFYl0/pPMe m5AJaBk97hpUsGYF5Apaa7HnPhbLXcibSYgz8pg= X-Google-Smtp-Source: AGHT+IHJE4BhPaA9Wx9DJSlSVGitpoq1dccGJeOgcs8RvIWGjhdpMIa38mTAvxA4AyXYmdK7b/r7E5Lch+oFHjhUVc0= X-Received: by 2002:a67:e94f:0:b0:44e:9838:656e with SMTP id p15-20020a67e94f000000b0044e9838656emr9253314vso.25.1693194498409; Sun, 27 Aug 2023 20:48:18 -0700 (PDT) MIME-Version: 1.0 References: <20230828031217.2801549-1-juzhe.zhong@rivai.ai> In-Reply-To: <20230828031217.2801549-1-juzhe.zhong@rivai.ai> From: Kito Cheng Date: Mon, 28 Aug 2023 11:48:07 +0800 Message-ID: Subject: Re: [PATCH] RISC-V: Enable vec_init testsuite for RVV VLA vectorization To: Juzhe-Zhong Cc: gcc-patches@gcc.gnu.org, lehua.ding@rivai.ai, kito.cheng@sifive.com Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,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 List-Id: > @@ -11100,6 +11101,15 @@ proc check_vect_support_and_set_flags { } { > } > } elseif [istarget amdgcn-*-*] { > set dg-do-what-default run > + } elseif [istarget riscv64-*-*] { > + if [check_effective_target_riscv_vector_hw] { > + lappend DEFAULT_VECTCFLAGS "--param" "riscv-autovec-preference=scalable" > + set dg-do-what-default run > + } else { > + lappend DEFAULT_VECTCFLAGS "-march=rv64gcv_zfh" "-mabi=lp64d" I would suggest using `-march=rv64gcv` or `-march=rv64gcv_zvfh_zfh`? Just zfh is not meaningful I think.