From patchwork Tue Jan 30 09:29:01 2024 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: 1892721 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=vrull.eu header.i=@vrull.eu header.a=rsa-sha256 header.s=google header.b=pnuonnPt; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4TPKcx4PG2z23fD for ; Tue, 30 Jan 2024 20:29:36 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 6DD333857C56 for ; Tue, 30 Jan 2024 09:29:34 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) by sourceware.org (Postfix) with ESMTPS id 5807D3858C36 for ; Tue, 30 Jan 2024 09:29:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5807D3858C36 Authentication-Results: sourceware.org; dmarc=pass (p=reject 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 5807D3858C36 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::62e ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706606951; cv=none; b=Yk4gQYmGBPEdzy1qNKjZaBPKqJvg0of6I4FEEn/aFt6wg+/SBP8zd5BOW3o0nyFGANQz2tYLH7DjP6lQWYUCxo9sqciS7B0CA/SKcopRIuxB5evBAXs1wXydKJb+JsDrhr3rMoJMa9/Br8K5keEEmICQFTvDze0g7rVf6PApaGA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1706606951; c=relaxed/simple; bh=lZ+PzbFcWfReGjeNPBD9hZCyJDoLjHNypu/B2DHlm0E=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=IXNEYhQfvPnkZM5wlxdZunXwTVjviRZGU+drXN4SmxvpLJshf3mqUwCD41hkNa0ILq1JD/L5LUjPoxfsauTAjB9BtRTq8TubJjNjO6XbhffmaBeDw6csishe4ABX+p8K7t2thLB9TuKaYCPHihcGhtdYEC5nd4QK9DW47JnrpY4= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a35c0ed672cso241614966b.1 for ; Tue, 30 Jan 2024 01:29:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=vrull.eu; s=google; t=1706606947; x=1707211747; 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=BNr6s75IA9/aP40AZ5JEbXXwwTYRcPVbJOc539RG4GM=; b=pnuonnPt7EkLKfuziNIy4paOUQrOvgW5aZcMAmihefotbtuc5LsuyGUWfv+KTdg3WV eOInB3AU3wfdaBtcWYXchHht5dDVPsI/DsYrG2Tyabkf8700UO+kb3vpku+MAyPsg6gV 5B9Ut04AtOEo/4UB5FUsoaeGXa4vZkjhHeBiPEuNWizV7xf5e5PNHiCSyg1as4aE3xLE t0ZcvEDI5ivIodMVlnX66jRG9R4aec3IUR1o0Pi+Xb9HnCMvioP8b4RMrCQVsD6JBd8Y aUnGa9mftZ91cMVHUNkYHn0/ZLbDsHnd0/18zPbjHZHunugDUIhGrFloWzPDqyCJnYkd PlaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706606947; x=1707211747; 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=BNr6s75IA9/aP40AZ5JEbXXwwTYRcPVbJOc539RG4GM=; b=D5u2wOcOz85bg36qH8dCez8t5iQRty42ejtGjIMp5CQ53f4geFaVbNE0MpHCMT/ilB jLbHI7mO8KvVBceuZOxclcRx8IlujjWn8cLMV0cls4UsxS66FxO//UhCMwfFAnlza0J7 r9LqyyMyJjSOsqQK+6ZbdiRLPxsxXWPmp+a2kn0XdbPalStzH791jJmKRdNxBa8MKL4x jUA19tKV2tmj6hIchDI6Eq8jsC5tR+kyKp/yyLjWTyWa0BRP4ygWrvUqjd7uqRFJIXic SdFyghBj2HBlup1qCCnvm6BsZ20FstR4zOlP9jjRxNct+1OduTeGAi4AsuR1NPaY7j5x OCQw== X-Gm-Message-State: AOJu0YxfbcYxhw+1x1ZA59rEjuD8wROBd+eexIocasKmCb/XyLyOH7b7 q8ujDn9lHz1MsfC0Mel8JeyY3TyX6S4m8TwEhww/+HGHm2TNKGwSvGVZvp4EgkdO3ekddRXvZf3 H X-Google-Smtp-Source: AGHT+IFDmsRmtGhPX0bz8HLw4sgF/gKCCRjWSF1Heo0qA+SXYaVb30AhGYcyXg+o5tHXa8O0oXtQpg== X-Received: by 2002:a17:906:b48:b0:a35:cd66:3e32 with SMTP id v8-20020a1709060b4800b00a35cd663e32mr2841947ejg.35.1706606947439; Tue, 30 Jan 2024 01:29:07 -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 ub14-20020a170907c80e00b00a3109a492d4sm4845085ejc.20.2024.01.30.01.29.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Jan 2024 01:29:06 -0800 (PST) From: =?utf-8?q?Christoph_M=C3=BCllner?= To: gcc-patches@gcc.gnu.org, Kito Cheng , Jim Wilson , Palmer Dabbelt , Andrew Waterman , Philipp Tomsich , Cooper Qu , Jin Ma , Jun Sha Cc: =?utf-8?q?Christoph_M=C3=BCllner?= Subject: [PATCH] riscv: Move UNSPEC_XTHEAD* from unspecv to unspec Date: Tue, 30 Jan 2024 10:29:01 +0100 Message-ID: <20240130092901.2700245-1-christoph.muellner@vrull.eu> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 X-Spam-Status: No, score=-12.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, 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+incoming=patchwork.ozlabs.org@gcc.gnu.org The UNSPEC_XTHEAD* macros ended up in the unspecv enum, which broke gcc/testsuite/gcc.target/riscv/xtheadfmv-fmv.c. The INSNs expect these unspecs to be not volatile. Further, there is not reason to have them defined volatile. So let's simply move the macros into the unspec enum. With this patch we have again 0 fails in riscv.exp. gcc/ChangeLog: * config/riscv/riscv.md: Move UNSPEC_XTHEADFMV* to unspec enum. Signed-off-by: Christoph Müllner --- gcc/config/riscv/riscv.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/gcc/config/riscv/riscv.md b/gcc/config/riscv/riscv.md index edcaec4a786..b320ad0210e 100644 --- a/gcc/config/riscv/riscv.md +++ b/gcc/config/riscv/riscv.md @@ -89,6 +89,10 @@ (define_c_enum "unspec" [ ;; Workaround for HFmode without hardware extension UNSPEC_FMV_SFP16_X + + ;; XTheadFmv moves + UNSPEC_XTHEADFMV + UNSPEC_XTHEADFMV_HW ]) (define_c_enum "unspecv" [ @@ -127,10 +131,6 @@ (define_c_enum "unspecv" [ ;; Zihintpause unspec UNSPECV_PAUSE - ;; XTheadFmv unspec - UNSPEC_XTHEADFMV - UNSPEC_XTHEADFMV_HW - ;; XTheadInt unspec UNSPECV_XTHEADINT_PUSH UNSPECV_XTHEADINT_POP