Message ID | 20230417182044.22425-3-palmer@rivosinc.com |
---|---|
State | Repeat Merge |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2318766vqo; Mon, 17 Apr 2023 11:22:31 -0700 (PDT) X-Google-Smtp-Source: AKy350YNZ6IC2V/srAezBx1wKzHQHn4JIWDQZ37UsbAOC8IIIyIpsiMjaFy4lRwduomFvqz2xc/D X-Received: by 2002:a17:906:4d8f:b0:931:ad32:79ed with SMTP id s15-20020a1709064d8f00b00931ad3279edmr8262761eju.12.1681755751048; Mon, 17 Apr 2023 11:22:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681755751; cv=none; d=google.com; s=arc-20160816; b=YYXFe6+CzVMqwwp6NTuOjICd6ulbnTmR48ZvoR3NJVUVgbsdjnpTZ5Zare30et4Svj HcB9sSUz5xq5XOhYyzDPC3ojsDxvhZyrsYl/9UHyWuEM7CjZHspLxbvOEHpNqMGkLQQi z8zMHIrFt/F2eZrdRXfY7MhLtbUf8mlkpnOnn6AVEAMaReqq0z9He1o89t1DjRC/VN1p XOrZLQwoQ4G94WFPYoceVCWFlj78EWU8rK7FdZpfq15XG4OxPoCZYn+gHStehA/4vUUr SVm3cYSqgiV1Min4zed1RhPZh15Uf5tu52lGADyseoldwyxJTSv3gknffA6EHhUgw4DQ 1SkA== 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:to:from:cc :content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:dkim-signature:dmarc-filter:delivered-to; bh=wUW9zK4FOlxK0s0LGmbIQFPkFLhucMvmh4ZmwrE7fkw=; b=MG3J28vsiGkQ0PUfPmdfSfCOSKnm5Z5LfWpNcnhU8YosT8RXBxTH+vMETsKJGoSE+b Fo44XpcXvPqSG1qcE1BXHdC7GpnBMRm1HtdR+KUTLp17PRJOorbR55Z4ylJdhp03pbW2 JjRR/OieVc8SprOZNtPy6XlvE3PX7fLn+x9gyoNf9SNj6lrJvk+w4YMxvZ2Vawl2eZ3i GFU0a0EcINrNzgGUE7OOfJ5aw81Hi7hA/i2Lu6Js6uiD3PWZTeKKhRZEizMtCaEudLkK URcnCk/FS3M9TguPlSiLzRVSMCOrLm+/fRgout2y1JiJLHOr+DTbhRR9aF9uGmExY72P NUgw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=xfO9VbP6; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org" Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id l21-20020a170907915500b0094f10dbffb4si5290149ejs.551.2023.04.17.11.22.30 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 11:22:31 -0700 (PDT) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@rivosinc-com.20221208.gappssmtp.com header.s=20221208 header.b=xfO9VbP6; spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 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 06F7F3851C28 for <ouuuleilei@gmail.com>; Mon, 17 Apr 2023 18:21:37 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pj1-x1034.google.com (mail-pj1-x1034.google.com [IPv6:2607:f8b0:4864:20::1034]) by sourceware.org (Postfix) with ESMTPS id 7D9663858C39 for <gcc-patches@gcc.gnu.org>; Mon, 17 Apr 2023 18:21:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 7D9663858C39 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-pj1-x1034.google.com with SMTP id hg12so12125411pjb.2 for <gcc-patches@gcc.gnu.org>; Mon, 17 Apr 2023 11:21:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20221208.gappssmtp.com; s=20221208; t=1681755665; x=1684347665; h=to:from:cc:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:from:to:cc:subject:date :message-id:reply-to; bh=wUW9zK4FOlxK0s0LGmbIQFPkFLhucMvmh4ZmwrE7fkw=; b=xfO9VbP6isHkvyQlkLH6hb7zXOmRsJJal0gdj+qddoTmzCZQWRbDqYR6R5q0xovxq/ 4pwdaMEh829IA36TFx9keFQLC6rHkm4H4gYxGAE78iigqTyNvS7kwtzrjuSXTqjhrun0 QXWgI+f72S0Wi2+pl2kAMwlC6Qtxdzjx2/6LoSTG1OkZ5tRzFviggK603D848DKTPRin KBdB1etUxcOBhHsNXPHcbME3IIxTGlNnCG7LVEZY5eW5D1B/94ioNrDqppuKO6vTamym sNyusoubTtN1P7jXQVy3LQ3et1FdloANVNNYfNOhj/Ncgg6Qf/GRuJz+GqrAbNHNI3iY bTWA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681755665; x=1684347665; h=to:from:cc:content-transfer-encoding:mime-version:references :in-reply-to:message-id:date:subject:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=wUW9zK4FOlxK0s0LGmbIQFPkFLhucMvmh4ZmwrE7fkw=; b=eWz3JZCm7me2ZU7Eu0U7KF3la6SWWGKtNVz5Hr0GLdEKiUVIFAbt9YwL3GCJvUP0Hp CkEDJvL/fTRK+YhH2J04HMKrwHhcIkyHXqLyWAztTduS7FL6IaVUZL6MzhgWrtyGVq6e ymsKUjVs36x9ZLlxewbDFYjehNraxq10tvMn7Og0A/iaN8kvArXbC27brDjwVIO9oj4D TQNoR4davDURUAAMTyynAtjNgC6lfzq0fD9oBR2GHJBx+lW7HjTm+/1zNKboK/3CsdxJ 2nGyhIYu/YWA0PMpniPfUT0XIuNspbJCjJiTwJM9omNmeGgN7H7JvYaeZwP9JYve8qR8 TqMg== X-Gm-Message-State: AAQBX9dNE3mRcaZ91/Rv9Xt3fVZrS+0F+FwrAMG2rbhtvCbakqFRf/zb 82T38J3f/tiCnJ4Lh/hHbepYcPDIdppFz7T3f40= X-Received: by 2002:a17:902:db06:b0:1a1:f0cb:1055 with SMTP id m6-20020a170902db0600b001a1f0cb1055mr16348622plx.28.1681755665542; Mon, 17 Apr 2023 11:21:05 -0700 (PDT) Received: from localhost ([50.221.140.188]) by smtp.gmail.com with ESMTPSA id p3-20020a1709026b8300b001a688de1f0esm7780197plk.234.2023.04.17.11.21.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Apr 2023 11:21:05 -0700 (PDT) Subject: [PATCH 13-backport 2/3] RISC-V: Set the ABI for the RVV tests Date: Mon, 17 Apr 2023 11:20:43 -0700 Message-Id: <20230417182044.22425-3-palmer@rivosinc.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230417182044.22425-1-palmer@rivosinc.com> References: <20230417182044.22425-1-palmer@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: Palmer Dabbelt <palmer@rivosinc.com> From: Palmer Dabbelt <palmer@rivosinc.com> To: gcc-patches@gcc.gnu.org X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, 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 <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: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1763448718318178239?= X-GMAIL-MSGID: =?utf-8?q?1763448718318178239?= |
Series |
RISC-V Testsuite Fixes
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Palmer Dabbelt
April 17, 2023, 6:20 p.m. UTC
The RVV test harness currently sets the ISA according to the target tuple, but doesn't also set the ABI. This just sets the ABI to match the ISA, though we should really also be respecting the user's specific ISA to test. gcc/testsuite/ChangeLog: * gcc.target/riscv/rvv/rvv.exp (gcc_mabi): New variable. (cherry picked from commit e6b050da8a4513ab37fd3699c7a963421fbe4d81) --- gcc/testsuite/gcc.target/riscv/rvv/rvv.exp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/gcc/testsuite/gcc.target/riscv/rvv/rvv.exp b/gcc/testsuite/gcc.target/riscv/rvv/rvv.exp index 7a9a2b6ac48..4b5509db385 100644 --- a/gcc/testsuite/gcc.target/riscv/rvv/rvv.exp +++ b/gcc/testsuite/gcc.target/riscv/rvv/rvv.exp @@ -31,15 +31,17 @@ if ![info exists DEFAULT_CFLAGS] then { } set gcc_march "rv64gcv_zfh" +set gcc_mabi "lp64d" if [istarget riscv32-*-*] then { set gcc_march "rv32gcv_zfh" + set gcc_mabi "ilp32d" } # Initialize `dg'. dg-init # Main loop. -set CFLAGS "$DEFAULT_CFLAGS -march=$gcc_march -O3" +set CFLAGS "$DEFAULT_CFLAGS -march=$gcc_march -mabi=$gcc_mabi -O3" dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/base/*.\[cS\]]] \ "" $CFLAGS gcc-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/vsetvl/*.\[cS\]]] \