From patchwork Mon Nov 6 19:44:42 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: 162151 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:8f47:0:b0:403:3b70:6f57 with SMTP id j7csp2888217vqu; Mon, 6 Nov 2023 11:45:15 -0800 (PST) X-Google-Smtp-Source: AGHT+IHgrm95oF9FXqRwwT9VvP3Td+Q+dDEkbTmvTgI7EGDN1xM3vYEIomOgljJhXeVG8kHtVd2h X-Received: by 2002:a05:620a:2a04:b0:774:cd4:4a58 with SMTP id o4-20020a05620a2a0400b007740cd44a58mr36870032qkp.39.1699299915623; Mon, 06 Nov 2023 11:45:15 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699299915; cv=pass; d=google.com; s=arc-20160816; b=pxR7E3WmU9kTSqUikdAQ/QQ67PKEcNBmHPsg12UVDAvX40n3O2vGp3LhizO4A3RFJA 5YnxWXVnB7N2pzWYm3vYTEGaBSPTByTBQ/Ot+pHf/gvUxK+9YH1BSSLGlWuty8pST4tn yULgv3xEDgb85we0NWRnDTk6NxiME/5Ff5IKk4c1VRedBQXLx5BVpJSwJdvtTp3LeOfa GYTHiYfD2w/3/vJXh6cx7EpMxyaW35yPks5qRBsMVprIXsJ9kPt6snCgA9UrCTNTRlED qmWUJlavKWwZ0k5oo/hinOtbx6XAsYflg+45ZgfnwtH3dbvjduObke6FU/mKDGCcq0Ja Ul/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=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 :arc-filter:dmarc-filter:delivered-to; bh=FYjzo3le3xU9brwI+j95s6jP6PYrnAf73TRLzU+kTcA=; fh=9oFhVPKihcNP6VY2Nsu6+FGvAEKY/HNABCPdk6S267g=; b=gaUv16HYKEE5kl79eGXO6cu5w3WQ7e1M0ONscz6L/93JjlLDnGSnNheA1fjJD3KGRB rLo62yEtoRR8b66vJRdwG0SP0zjQXaqJ4y8h7oewjgPTCDC3hbuCWzHNg/PIvfPBKpj5 4PDhxFjve5XliXYPPg5iup4y7XJhqlHUXw4BWNxXUURwwQ4udrTr5Wm/lQRlx16GUxzt RUbYU3EdyevCAOZDxFAXWFEuVJoFFIC7SHeIxr0l2DoRYbCz+V+gTkcj0OJOjgnByDnA 5phMdu/9e/VvKTXrEntHtqFe+qf+QpnetYJLH21UqSMYxefoBrV+NmNa1eacXGQJg4yd H38Q== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@vrull.eu header.s=google header.b="ag/k/JUg"; arc=pass (i=1); 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 tl18-20020a05620a3b1200b0076f280e295fsi5594415qkn.429.2023.11.06.11.45.15 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 11:45:15 -0800 (PST) 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=@vrull.eu header.s=google header.b="ag/k/JUg"; arc=pass (i=1); 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 BB959385B516 for ; Mon, 6 Nov 2023 19:45:14 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by sourceware.org (Postfix) with ESMTPS id 01067385782B for ; Mon, 6 Nov 2023 19:44:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 01067385782B Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=vrull.eu Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=vrull.eu ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 01067385782B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::52c ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699299891; cv=none; b=jvf6b4HGvlNdOuvR7XqmivnpXwHowEEPtE7KoDXdtN9n/cNL7azgKj11PMgni/qrsEEGfNqDooE3FI9z/iV6AnvS5sjZPzyVo4TMt7ERjHlqSmwKy74trQQQqgieomlxbxUjRHBWrVHVBR6Ia9SJ1j7PCNe0yvmTEYzjax8kHEQ= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1699299891; c=relaxed/simple; bh=M44iJ3b2yCKQ0WFL3VxdLuq7iuozV6jsj/U6erA9fu8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=RcmHGGsxPLV742oFO/UBVvr7J9Jg4henTVqkhrKipF/II6EeXwZYrkU9rsixNLPIKiKIcaqIOcbHQ9Rhb4CLj3eSwEWT6/WCaJ69Ry53UX+hSmZilh1v7irZyQAvW68UwXN6dE7//qi8x3yyFdvCxiWTl44eUcM8dGp7GuoBLGc= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-53d9f001b35so8227292a12.2 for ; Mon, 06 Nov 2023 11:44:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; t=1699299886; x=1699904686; 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=FYjzo3le3xU9brwI+j95s6jP6PYrnAf73TRLzU+kTcA=; b=ag/k/JUg3OqhsQjA38yef3qf3g2PZBAuAjA1mnFGXGBrQX6zx4CrPX1tcaVicZSnWr 2Tg6djBozOwDs2EwluifHSnfGHnEkZHkbdao9BB1TBlopJSO3x80y7GP8LEYnySu5mLl WPefsiadUdKZrKRzjZ+A+KqVWS8MRsAEdvdoZN+dQvntcKtoX0zcCGhE2vk6t0QwWxrH Fja2Ys12IAwatarBrCM4RThkh0EeZgNrtfUDof5REvrjI1j0FMDOshLFBVeqCtGXmuhS s27saF0kBIIrSUlKn0LsJHmvZkGY5OJ/ojuTjqSioLmIBIHmn1WQOoEKcBMcog4N+w2T SrEA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699299886; x=1699904686; 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=FYjzo3le3xU9brwI+j95s6jP6PYrnAf73TRLzU+kTcA=; b=A4fWrGvgNJfDF7HTPRMhwrNqIv698GB4iB/gWjLFCM0AY90YOQqWhUYpZyQdFWCobW sHvPx+ufvzxTbHcI9FV0uKaLccdWePEt858nFPGo5BLLY9CYE2MSgud4hJ8OoJiKCtK1 6rvp1vdeVG06aVnCM1ZROYcpVJ6xMSc1NzZRNR2WvJlolfp/Q4YTE1a4ioiLksvbSell GcxzPXBiojSN77s+bv4MH5WPdfy+M95OwaasZWvyacDRIRRKbzaK5Vm4Bb9O7+d2plN7 919hoB7oljD19fkuepyznBB041G4VJwAejG1eVgPwBigHxStxvfU832OjS3njZwez85U vHrQ== X-Gm-Message-State: AOJu0YwRlyQG+ShQvyFuZJCe/VxOgeSa+68XfoUjU8lPCt52AEnho1lx fncPoj1qyLUQB0IUw5jc+SF50R7dit2hFzrRo90= X-Received: by 2002:a05:6402:70b:b0:53d:f072:7b0a with SMTP id w11-20020a056402070b00b0053df0727b0amr23897625edx.39.1699299885997; Mon, 06 Nov 2023 11:44:45 -0800 (PST) Received: from beast.fritz.box (62-178-148-172.cable.dynamic.surfer.at. [62.178.148.172]) by smtp.gmail.com with ESMTPSA id f14-20020a05640214ce00b0053db0df6970sm4606446edx.54.2023.11.06.11.44.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 11:44:45 -0800 (PST) From: Christoph Muellner To: gcc-patches@gcc.gnu.org, Kito Cheng , Jim Wilson , Palmer Dabbelt , Andrew Waterman , Philipp Tomsich , Jeff Law Cc: =?utf-8?q?Christoph_M=C3=BCllner?= Subject: [PATCH] RISC-V: Add ABI requirement for XTheadFMemIdx tests Date: Mon, 6 Nov 2023 20:44:42 +0100 Message-ID: <20231106194442.1446416-1-christoph.muellner@vrull.eu> X-Mailer: git-send-email 2.41.0 MIME-Version: 1.0 X-Spam-Status: No, score=-12.5 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_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.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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1781845108166530783 X-GMAIL-MSGID: 1781845108166530783 From: Christoph Müllner The XTheadFMemIdx tests set the required ABI for RV32, but not for RV64, which has the effect that the tests are expected to succeed for RV64/LP64. Let's set the ABI to LP64D in these tests to clarify the requirements. Signed-off-by: Christoph Müllner gcc/testsuite/ChangeLog: * gcc.target/riscv/xtheadfmemidx-index-update.c: Add ABI. * gcc.target/riscv/xtheadfmemidx-index-xtheadbb-update.c: Likewise. * gcc.target/riscv/xtheadfmemidx-index-xtheadbb.c: Likewise. * gcc.target/riscv/xtheadfmemidx-index.c: Likewise. * gcc.target/riscv/xtheadfmemidx-uindex-update.c: Likewise. * gcc.target/riscv/xtheadfmemidx-uindex-xtheadbb-update.c: Likewise. * gcc.target/riscv/xtheadfmemidx-uindex-xtheadbb.c: Likewise. * gcc.target/riscv/xtheadfmemidx-uindex.c: Likewise. --- gcc/testsuite/gcc.target/riscv/xtheadfmemidx-index-update.c | 2 +- .../gcc.target/riscv/xtheadfmemidx-index-xtheadbb-update.c | 2 +- gcc/testsuite/gcc.target/riscv/xtheadfmemidx-index-xtheadbb.c | 2 +- gcc/testsuite/gcc.target/riscv/xtheadfmemidx-index.c | 2 +- gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex-update.c | 2 +- .../gcc.target/riscv/xtheadfmemidx-uindex-xtheadbb-update.c | 2 +- gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex-xtheadbb.c | 2 +- gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex.c | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-index-update.c b/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-index-update.c index 24bbb63d174..cb86b8ad296 100644 --- a/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-index-update.c +++ b/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-index-update.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-skip-if "" { *-*-* } { "-O0" "-O1" "-Og" } } */ -/* { dg-options "-march=rv64gc_xtheadmemidx_xtheadfmemidx" { target { rv64 } } } */ +/* { dg-options "-march=rv64gc_xtheadmemidx_xtheadfmemidx -mabi=lp64d" { target { rv64 } } } */ /* { dg-options "-march=rv32imafc_xtheadmemidx_xtheadfmemidx -mabi=ilp32f" { target { rv32 } } } */ #include "xtheadmemidx-helpers.h" diff --git a/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-index-xtheadbb-update.c b/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-index-xtheadbb-update.c index 3b931a4b980..cc3f6219c05 100644 --- a/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-index-xtheadbb-update.c +++ b/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-index-xtheadbb-update.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-skip-if "" { *-*-* } { "-O0" "-O1" "-Og" } } */ -/* { dg-options "-march=rv64gc_xtheadbb_xtheadmemidx_xtheadfmemidx" { target { rv64 } } } */ +/* { dg-options "-march=rv64gc_xtheadbb_xtheadmemidx_xtheadfmemidx -mabi=lp64d" { target { rv64 } } } */ /* { dg-options "-march=rv32imafc_xtheadbb_xtheadmemidx_xtheadfmemidx -mabi=ilp32f" { target { rv32 } } } */ #include "xtheadmemidx-helpers.h" diff --git a/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-index-xtheadbb.c b/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-index-xtheadbb.c index 48858605c24..8ee98c87469 100644 --- a/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-index-xtheadbb.c +++ b/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-index-xtheadbb.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-skip-if "" { *-*-* } { "-O0" "-O1" "-Og" } } */ -/* { dg-options "-march=rv64gc_xtheadbb_xtheadmemidx_xtheadfmemidx" { target { rv64 } } } */ +/* { dg-options "-march=rv64gc_xtheadbb_xtheadmemidx_xtheadfmemidx -mabi=lp64d" { target { rv64 } } } */ /* { dg-options "-march=rv32imafc_xtheadbb_xtheadmemidx_xtheadfmemidx -mabi=ilp32f" { target { rv32 } } } */ #include "xtheadmemidx-helpers.h" diff --git a/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-index.c b/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-index.c index 1bb231a9e88..35704063598 100644 --- a/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-index.c +++ b/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-index.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-skip-if "" { *-*-* } { "-O0" "-O1" "-Og" } } */ -/* { dg-options "-march=rv64gc_xtheadmemidx_xtheadfmemidx" { target { rv64 } } } */ +/* { dg-options "-march=rv64gc_xtheadmemidx_xtheadfmemidx -mabi=lp64d" { target { rv64 } } } */ /* { dg-options "-march=rv32imafc_xtheadmemidx_xtheadfmemidx -mabi=ilp32f" { target { rv32 } } } */ #include "xtheadmemidx-helpers.h" diff --git a/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex-update.c b/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex-update.c index bc50fa799e0..37ffe6afd53 100644 --- a/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex-update.c +++ b/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex-update.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-skip-if "" { *-*-* } { "-O0" "-O1" "-Og" } } */ -/* { dg-options "-march=rv64gc_xtheadmemidx_xtheadfmemidx" { target { rv64 } } } */ +/* { dg-options "-march=rv64gc_xtheadmemidx_xtheadfmemidx -mabi=lp64d" { target { rv64 } } } */ /* { dg-options "-march=rv32imafc_xtheadmemidx_xtheadfmemidx -mabi=ilp32f" { target { rv32 } } } */ #include "xtheadmemidx-helpers.h" diff --git a/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex-xtheadbb-update.c b/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex-xtheadbb-update.c index 242be7af4a4..95bf3e616b8 100644 --- a/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex-xtheadbb-update.c +++ b/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex-xtheadbb-update.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-skip-if "" { *-*-* } { "-O0" "-O1" "-Og" } } */ -/* { dg-options "-march=rv64gc_xtheadbb_xtheadmemidx_xtheadfmemidx" { target { rv64 } } } */ +/* { dg-options "-march=rv64gc_xtheadbb_xtheadmemidx_xtheadfmemidx -mabi=lp64d" { target { rv64 } } } */ /* { dg-options "-march=rv32imafc_xtheadbb_xtheadmemidx_xtheadfmemidx -mabi=ilp32f" { target { rv32 } } } */ #include "xtheadmemidx-helpers.h" diff --git a/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex-xtheadbb.c b/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex-xtheadbb.c index e2a4f36796f..5b57bb0a738 100644 --- a/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex-xtheadbb.c +++ b/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex-xtheadbb.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-skip-if "" { *-*-* } { "-O0" "-O1" "-Og" } } */ -/* { dg-options "-march=rv64gc_xtheadbb_xtheadmemidx_xtheadfmemidx" { target { rv64 } } } */ +/* { dg-options "-march=rv64gc_xtheadbb_xtheadmemidx_xtheadfmemidx -mabi=lp64d" { target { rv64 } } } */ /* { dg-options "-march=rv32imafc_xtheadbb_xtheadmemidx_xtheadfmemidx -mabi=ilp32f" { target { rv32 } } } */ #include "xtheadmemidx-helpers.h" diff --git a/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex.c b/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex.c index 32783ebed03..268a31ba21d 100644 --- a/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex.c +++ b/gcc/testsuite/gcc.target/riscv/xtheadfmemidx-uindex.c @@ -1,6 +1,6 @@ /* { dg-do compile } */ /* { dg-skip-if "" { *-*-* } { "-O0" "-O1" "-Og" } } */ -/* { dg-options "-march=rv64gc_xtheadmemidx_xtheadfmemidx" { target { rv64 } } } */ +/* { dg-options "-march=rv64gc_xtheadmemidx_xtheadfmemidx -mabi=lp64d" { target { rv64 } } } */ /* { dg-options "-march=rv32imafc_xtheadmemidx_xtheadfmemidx -mabi=ilp32f" { target { rv32 } } } */ #include "xtheadmemidx-helpers.h"