From patchwork Wed Sep 6 10:04:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Christoph_M=C3=BCllner?= X-Patchwork-Id: 137565 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:ab0a:0:b0:3f2:4152:657d with SMTP id m10csp2207357vqo; Wed, 6 Sep 2023 03:05:59 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGIncE8o2WCwr3crMny4A+pQuxmESG/teqExDKBK3zdM+SL/9Dlni1fNnEoDh1m/2Nx0kZu X-Received: by 2002:a17:906:2dc:b0:9a5:d899:cc36 with SMTP id 28-20020a17090602dc00b009a5d899cc36mr1703663ejk.2.1693994759407; Wed, 06 Sep 2023 03:05:59 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693994759; cv=none; d=google.com; s=arc-20160816; b=vJyPBnx9EMUlx3BcYEH21qfkN58zU5DmJPZytZsAr5mXNh0UkbBIqm0zudzGDdiE0p +OlPtAVTeZRUZ2VQuTOpPM0iZuzmtjPHZSRilqlX69i2jaJ76NSrnuKVrC3dvpjlpXB8 sfw+JFiZIsp8PBrIxpYswRM79hP3kGp55iMYV8nczxH4xbUvlNQ200qddqnI4z+d87A5 BdXhRSaQ/aIjHf4hVWemveGArG4yedyvhr6LOg831FTJdwY3MofKszw+BCbIH1s54Rfu lXZwRh5iezaPFhhc14hrhc4xGypeQv0jRK4eGC7A8V3NUI7IdL+Ddw9UnQOwxBD5bSgV rR6Q== 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:to:from:dkim-signature :dmarc-filter:delivered-to; bh=pFsTKxlENKE/vwMya6a+/WF93NTGda7iNy2nFH9pOrg=; fh=rhzHQJhq9WV4qpo88d7UFjCUBpstN9AhlgFhCyDisF8=; b=rLhz/ShAKSs6gSaVl0WEw+GoShEqGKD1ugxtYygA24lJN0OeDEpGXeXNMbXoiI/cVb sTfityu1qrHvaNF/t+dXlAqL3jJVO1HmpbZV10gT3KkDgZK+dx+db9dHxKNyp6B4R9kY uVNdj/wVmptrZS2DjIUMFZA4Mc8j0gMFCVbEMP5Uo0PVq571xJieI0C4RmzoiGknDqI8 FF1rEoUfx4llz8GXkQpUmwOxLS6KlArD7I3CNZgluWoEGc8WP+3O+ccJ0vPMS+r0KeiX oNydDhSVeA4MU1yBxsS4YrFQ6Iv4oQi0neRen82Og0GGuMq0M2MQgOpaPe/bjbsy/MoL 3J6g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@vrull.eu header.s=google header.b=SNM4Gh3c; 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 (ip-8-43-85-97.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id j5-20020a170906830500b0099bc57f3882si8435769ejx.369.2023.09.06.03.05.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 03:05:59 -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=fail header.i=@vrull.eu header.s=google header.b=SNM4Gh3c; 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 CA5AA3856DC2 for ; Wed, 6 Sep 2023 10:04:58 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lj1-x22f.google.com (mail-lj1-x22f.google.com [IPv6:2a00:1450:4864:20::22f]) by sourceware.org (Postfix) with ESMTPS id 6E0C7385841E for ; Wed, 6 Sep 2023 10:04:29 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 6E0C7385841E Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=vrull.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=vrull.eu Received: by mail-lj1-x22f.google.com with SMTP id 38308e7fff4ca-2bd3f629c76so57219001fa.0 for ; Wed, 06 Sep 2023 03:04:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; t=1693994667; x=1694599467; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=pFsTKxlENKE/vwMya6a+/WF93NTGda7iNy2nFH9pOrg=; b=SNM4Gh3cETPO7Zj18V3wl07Gi75AAba16LSqSOl8unp+g1zLwmYQHXZYKynOuXyCmE DxQV55CBnpdKOgdNBPDl+hVL/rhCK5adnTzOsacHQDufHxp5Lc6o3PE/Ovy+lRc1ewWk byDV4FFTi10GX95BG4U6U5WKzTO3GOzNkn7d326tRn8S3wfbGzZySHwQkZPUqR8OLw9R RnWPMB04hczfzOAVt3q1Iv8QK+PdvOYv0iJQl8s+gIbDnnhwTP0vji3odtfmUA7iYXFK 2HJP+DGoNEsUCvgh2jpgg6L4h6cL250GJCYdstU6mwG8/DdJBEYbeI0UDar0j47D/gGc 02wQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693994667; x=1694599467; 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=pFsTKxlENKE/vwMya6a+/WF93NTGda7iNy2nFH9pOrg=; b=XqT5e/Q4+ShXuJM2OLcVvfew97IGr154sxT5Wo+bNkDIwE114ap7rEApwR54dxBjO+ sbrZDxk4mqpOmSRakhV3QupzoPSmBLtdgU+7hvl9bOWEpQZvyAKitm0GFiOSjh8AENhe dYF9ATT0qvcD72dL5hIlP12z/KpTesUrpIy0XpUmh994aYrtJ6hhhHgAjslThgcsxzOW DA7XZ/c7Np2PQN+kGc88wPWwjKO8XFntfp+fyRYgNMCLlBXtx+eXiXTTfKrCt3DqRr8K Iv4dSLlYL39yFARzQiqZTcfKyShdC6diKtLT8OwGt2cT3CEtA9pjJ3vFL5Opq6eSU3Ij HTrA== X-Gm-Message-State: AOJu0YwErT6wdDzL2I0d3d+TGuPaaqfv7jf2j7EsbVMyuSzj3DFo1c0Z veN7bMbo7tJgV5MSSN9pP9z8RBLh6Sg5nJ8QMlU= X-Received: by 2002:a2e:b0e9:0:b0:2bc:d94f:ad04 with SMTP id h9-20020a2eb0e9000000b002bcd94fad04mr1856830ljl.13.1693994667369; Wed, 06 Sep 2023 03:04:27 -0700 (PDT) Received: from beast.fritz.box (62-178-148-172.cable.dynamic.surfer.at. [62.178.148.172]) by smtp.gmail.com with ESMTPSA id qc8-20020a170906d8a800b0099275c59bc9sm8746814ejb.33.2023.09.06.03.04.26 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Sep 2023 03:04:26 -0700 (PDT) From: Christoph Muellner To: gcc-patches@gcc.gnu.org, Kito Cheng , Jim Wilson , Palmer Dabbelt , Andrew Waterman , Philipp Tomsich , Jeff Law Subject: [PATCH] riscv: xtheadbb: Fix xtheadbb-li-rotr test for rv32 Date: Wed, 6 Sep 2023 12:04:23 +0200 Message-ID: <20230906100423.4181932-1-christoph.muellner@vrull.eu> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, JMQ_SPF_NEUTRAL, KAM_MANYTO, KAM_NUMSUBJECT, KAM_SHORT, LIKELY_SPAM_BODY, 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.30 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: INBOX X-GMAIL-THRID: 1776282248969840468 X-GMAIL-MSGID: 1776282248969840468 From: Christoph Müllner The test was introduced recently and tests a RV64-only feature. However, when testing an RV32 compiler, the test gets executed as well and fails with "cc1: error: ABI requires '-march=rv32'". This patch fixes this by adding '-mabi=lp64' (like it is done for other RV64-only tests as well). Retested with RV32 and RV64 to ensure this won't pop up again. Signed-off-by: Christoph Müllner gcc/testsuite/ChangeLog: * gcc.target/riscv/xtheadbb-li-rotr.c: Don't run for RV32. --- gcc/testsuite/gcc.target/riscv/xtheadbb-li-rotr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.target/riscv/xtheadbb-li-rotr.c b/gcc/testsuite/gcc.target/riscv/xtheadbb-li-rotr.c index 136dcb01cf4..01f4215179a 100644 --- a/gcc/testsuite/gcc.target/riscv/xtheadbb-li-rotr.c +++ b/gcc/testsuite/gcc.target/riscv/xtheadbb-li-rotr.c @@ -1,5 +1,5 @@ /* { dg-do compile } */ -/* { dg-options "-march=rv64gc_xtheadbb" } */ +/* { dg-options "-march=rv64gc_xtheadbb -mabi=lp64" } */ /* { dg-skip-if "" { *-*-* } {"-O0" "-Os" "-Og" "-Oz" "-flto" } } */ /* { dg-final { check-function-bodies "**" "" } } */