From patchwork Fri May 12 03:10:45 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "juzhe.zhong@rivai.ai" X-Patchwork-Id: 92933 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp4816657vqo; Thu, 11 May 2023 20:11:33 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4MAJYLDxZaSc6Of9WUJM01E2wWbARgJ4tweLs+92A1M9Jmgt882j6/dLkjc30dXN44J07M X-Received: by 2002:a17:906:5d0b:b0:96a:ad45:fd51 with SMTP id g11-20020a1709065d0b00b0096aad45fd51mr234130ejt.27.1683861092931; Thu, 11 May 2023 20:11:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683861092; cv=none; d=google.com; s=arc-20160816; b=ynWPNiKnMkE0zITT3yl6SX14W4y05hF8hGzNBTS6dLNIzMPAbuNOYzhpGZ0WdCq33z VQNQuY8BUAnQltFXCr1QsCjgFvmDBDJUFT96HGLJ5d1cs14YlGS7gDTP+K+d1/SxDh3j 86bQOL3k929JugXzz+BGkpBdpeCcR373McVeTX8RuZWseuI00y3KSgQlJgd9YZ6NaFUP m5yHwQsn6L7xNgwiqeRMnnzs2xrdCqU0bK309jhaEKvjSf6D1k2M46cMXUkkc6hmJOI+ ZTcjo7fNMhOAL/kdPcYIo7MgRvFr7+TWOZtSjeh6BhQBIQUfla/9FWeBkXSBGsR/WbfT sxTQ== 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:feedback-id :content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:dmarc-filter:delivered-to; bh=28UGDkl0qOdT6xUA/4AN8BLlfhH6yEsn95OzLGrMZLc=; b=AiszOLtjsEu5E8qjY0mVbXUIrhuo77lxxt+rd9axfchomaXR1BUhnEQE+t+nhjT1EI 3z9uNjI6PsgjJjSnY/tk9KFgkizf/9mgm6tjxPHr5WUvWNENKOHTISqeSpl2bipb67BX JM8wHMBBT8tmQi4NY25sr1mfBny9QR6PQsVfcueGcMca7FPORQuUutY1fm8265tQvlPA nWfRBGQk20ZD+NTcbKUYk609pokS7wLxWwa0uOD8XS0xvhIfjYnO/tVaVNlNsO4Y6HVB IAnZSaSTzWCTJcm8F4hBrzdi/Fhx+XTvlAb52COkFgNSk5IwLFC0P41vIfJniK2h8AsX vrAg== 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 o18-20020a170906861200b0094f6e186c50si7112166ejx.295.2023.05.11.20.11.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 May 2023 20:11:32 -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 572D838555AB for ; Fri, 12 May 2023 03:11:22 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from smtpbgbr1.qq.com (smtpbgbr1.qq.com [54.207.19.206]) by sourceware.org (Postfix) with ESMTPS id DEE553858CDA for ; Fri, 12 May 2023 03:10:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DEE553858CDA Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivai.ai Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivai.ai X-QQ-mid: bizesmtp77t1683861048tld2u6bn Received: from server1.localdomain ( [58.60.1.22]) by bizesmtp.qq.com (ESMTP) with id ; Fri, 12 May 2023 11:10:46 +0800 (CST) X-QQ-SSF: 01400000000000F0Q000000A0000000 X-QQ-FEAT: eSZ1CZgv+JC1J0/tIxPPNXHzaj+rg7qpjNbFVov05sV1FbAPDJvxeIDP19M4P Pg8unvHz73M0gi5tW91F1GKUSFjDQJPWzHdQiuUK62yHsAJhSWJH9MXmPFAwynKP+M5uUEk 6XkHlJ1A4QN6HY9vS19Z4BVO1fEXtwdPHi2V7urxQzHrgQRxEt9rY+D6iJDfOL8EOckGCeF OD8mylNj1PUQxYSUEhclmd3LwtN0k4cHRvE6qRrgafF3PStzwYfdu4DzYUzsohhkr028ccQ opGn+XDviDx+LOTlXXXIUlwKfVJVpmsdd+P1l1sNYLMWuTo4SC+wfaIcdlHuXQknI/uB6FW DiSFr+gruB9OyQi6wCsOeFQUqwzzu6g/RtQrzRSqYSmLO/VmpQik2pmTRQmSF0D6Ob2PooL X-QQ-GoodBg: 2 X-BIZMAIL-ID: 14095937952807637044 From: juzhe.zhong@rivai.ai To: gcc-patches@gcc.gnu.org Cc: kito.cheng@gmail.com, palmer@dabbelt.com, jeffreyalaw@gmail.com, rdapp.gcc@gmail.com, Juzhe-Zhong Subject: [PATCH] RISC-V: Fix fail of vmv-imm-rv64.c in rv32 Date: Fri, 12 May 2023 11:10:45 +0800 Message-Id: <20230512031045.199419-1-juzhe.zhong@rivai.ai> X-Mailer: git-send-email 2.36.1 MIME-Version: 1.0 X-QQ-SENDSIZE: 520 Feedback-ID: bizesmtp:rivai.ai:qybglogicsvrgz:qybglogicsvrgz7a-one-0 X-Spam-Status: No, score=-10.4 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_STATUS, KAM_NUMSUBJECT, KAM_SHORT, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, 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 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?1765656329641879861?= X-GMAIL-MSGID: =?utf-8?q?1765656329641879861?= From: Juzhe-Zhong After update local codebase to the trunk. I realize there is one more fail in RV32. After this patch, all fails of RVV are cleaned up. Thanks. FAIL: gcc.target/riscv/rvv/autovec/vmv-imm-rv64.c -O3 -ftree-vectorize (test for excess errors) Excess errors: cc1: error: ABI requires '-march=rv32' gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/autovec/vmv-imm-rv64.c: Add ABI --- gcc/testsuite/gcc.target/riscv/rvv/autovec/vmv-imm-rv64.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vmv-imm-rv64.c b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vmv-imm-rv64.c index 520321e1c73..e386166f95e 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/autovec/vmv-imm-rv64.c +++ b/gcc/testsuite/gcc.target/riscv/rvv/autovec/vmv-imm-rv64.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-additional-options "-std=c99 -march=rv64gcv -fno-vect-cost-model --param=riscv-autovec-preference=scalable -fno-builtin" } */ +/* { dg-additional-options "-std=c99 -march=rv64gcv -mabi=lp64d -fno-vect-cost-model --param=riscv-autovec-preference=scalable -fno-builtin" } */ #include "vmv-imm-template.h"