From patchwork Thu Jun 20 13:34:17 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Sandiford X-Patchwork-Id: 1950178 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; 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 [IPv6:2620:52:3:1:0:246e:9693:128c]) (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 4W4hMK2gyFz20Wb for ; Thu, 20 Jun 2024 23:35:41 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 9EADD3894C09 for ; Thu, 20 Jun 2024 13:35:39 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by sourceware.org (Postfix) with ESMTP id EF74738930EE for ; Thu, 20 Jun 2024 13:35:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EF74738930EE Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=arm.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EF74738930EE Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=217.140.110.172 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718890508; cv=none; b=UX9/13bUGQTq/hbe6TjKshfuUF/pzjr8UwAIyq0T85/9VxfU+IOHVCN89XrEvKH3Lb6IWRLIU+w2IghSGK8pcDp5MOxi6xwEyz8WS1DmnQyEVhMjzgqlRT3IqkxZuA42UUh57bdUQ4rJ5vNQbCtdx5CDK8ShVn6Z8w+hFjvwq/I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1718890508; c=relaxed/simple; bh=B23J4/fIDJtfe7ZmTlvk57sicQvaqpM+Gz60sZGvqFo=; h=From:To:Subject:Date:Message-Id:MIME-Version; b=qp+agFCTUmRknTdf1dISKLBcIiGTdOGRFr41GIgGiZVyRy1jlUbTX6DswWp/vYdXFMY4gkb34lKBSBr+/PffoPJQ7HlNgXSzFMTBbgHrf+5jOjlIdD5OAuGD1M4AnObL9oO6tXUQJ2ZhFEGx5+Qs7knHF40071T0DfHy+UABckU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7D95D168F; Thu, 20 Jun 2024 06:35:31 -0700 (PDT) Received: from e121540-lin.manchester.arm.com (e121540-lin.manchester.arm.com [10.32.110.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 342753F73B; Thu, 20 Jun 2024 06:35:06 -0700 (PDT) From: Richard Sandiford To: jlaw@ventanamicro.com, gcc-patches@gcc.gnu.org Cc: Richard Sandiford Subject: [PATCH 5/6] xstormy16: Fix xs_hi_nonmemory_operand Date: Thu, 20 Jun 2024 14:34:17 +0100 Message-Id: <20240620133418.350772-6-richard.sandiford@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240620133418.350772-1-richard.sandiford@arm.com> References: <20240620133418.350772-1-richard.sandiford@arm.com> MIME-Version: 1.0 X-Spam-Status: No, score=-20.0 required=5.0 tests=BAYES_00, GIT_PATCH_0, KAM_DMARC_NONE, KAM_DMARC_STATUS, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, 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 All uses of xs_hi_nonmemory_operand allow constraint "i", which means that they allow consts, symbol_refs and label_refs. The definition of xs_hi_nonmemory_operand accounted for consts, but not for symbol_refs and label_refs. gcc/ * config/stormy16/predicates.md (xs_hi_nonmemory_operand): Handle symbol_ref and label_ref. --- gcc/config/stormy16/predicates.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/config/stormy16/predicates.md b/gcc/config/stormy16/predicates.md index 67c2ddc107c..085c9c5ed2d 100644 --- a/gcc/config/stormy16/predicates.md +++ b/gcc/config/stormy16/predicates.md @@ -152,7 +152,7 @@ (define_predicate "xstormy16_carry_plus_operand" }) (define_predicate "xs_hi_nonmemory_operand" - (match_code "const_int,reg,subreg,const") + (match_code "const_int,reg,subreg,const,symbol_ref,label_ref") { return nonmemory_operand (op, mode); })