From patchwork Sun Oct 16 15:04:04 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 1690446 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=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=Rh/wZnr2; dkim-atps=neutral Received: from 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 (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Mr3Lq40chz23jn for ; Mon, 17 Oct 2022 02:04:33 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 8E9C73857C4C for ; Sun, 16 Oct 2022 15:04:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8E9C73857C4C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665932669; bh=IYgilKO8RG3tMa5hrPxHRTzhtPxk3L3vq66kyGWnolc=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Rh/wZnr2Ta3MmWbagAzIe8uOtU83XgEF0jO01SwpYWLZ7PbJjd4RP/bWhXG0O3MqW MT4jGaiR3DwmakDQ+yB0UEB93JXlEJyZI8hSxw1Wlk5/nkcZzFidudrnlNtxzfKSFX WSiPCljf578LYCDL31/95oU9WLATxaNM32IeCRZs= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by sourceware.org (Postfix) with ESMTPS id AF1B43858403 for ; Sun, 16 Oct 2022 15:04:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AF1B43858403 Received: by mail-pl1-x62a.google.com with SMTP id i6so8690292pli.12 for ; Sun, 16 Oct 2022 08:04:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=subject:from:to:content-language:user-agent:mime-version:date :message-id:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IYgilKO8RG3tMa5hrPxHRTzhtPxk3L3vq66kyGWnolc=; b=q5tgHSw8z8XTWjaK3fXBrx0uHEz9UMtmCySJOwQzJHd8hi8+S04cSYwvx8/bM6MYUQ FBfFSKOkqsy+IWtdLwBM/HvWgQR1HzJ4ZYaw5EIORHPMqqoCxyDQ9LZ/Mh7fcaZsO5m/ JQNzTT0dFTgsRjOt/GAJPNql6JAqnMZkBTO/HU3n3Z34U79C9y4uktiFOz5tShGvObRk XnBugBCVrIBdR03eOsnadtifyccUuJeEuxeVLyYfgxQYi3FMzOXgZzAALRAz9EktHn8W MU/LMN3BUPEQm+TNnOwg7iwNvjq5G8QxQHl84qP5Zh1qeDq5ssiMsBpVrn7/HsPOy5nG Wnjw== X-Gm-Message-State: ACrzQf0lOix3JoUN/Xi3JLmGyc6eS2mPVEJawLygieUh47YfYz8S2+AU soLqypg6WBML8JiDXpoQXJSlCQV3S1k= X-Google-Smtp-Source: AMsMyM5ZnC3Un16nG7Lo0BtKHftx4BbWh5H5vN8SCFFORuCFMbn/rFjQ9NlKnNnF+daPUFAbbScsYA== X-Received: by 2002:a17:90a:86c6:b0:20b:dba4:758a with SMTP id y6-20020a17090a86c600b0020bdba4758amr8690168pjv.71.1665932648093; Sun, 16 Oct 2022 08:04:08 -0700 (PDT) Received: from ?IPV6:2601:681:8600:13d0::f0a? ([2601:681:8600:13d0::f0a]) by smtp.gmail.com with ESMTPSA id q18-20020aa79612000000b00537b6bfab7fsm5303760pfg.177.2022.10.16.08.04.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 16 Oct 2022 08:04:06 -0700 (PDT) Message-ID: Date: Sun, 16 Oct 2022 09:04:04 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.3.1 Content-Language: en-US To: "gcc-patches@gcc.gnu.org" Subject: [committed] Rename "Z" constraint on H8/300 to "Zz". X-Spam-Status: No, score=-8.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, 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.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jeff Law via Gcc-patches From: Jeff Law Reply-To: Jeff Law Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" I want to use Z for multi-letter constraints.  So first we have to adjust the existing use of Z.  This does not affect code generation. Pushed to the trunk, Jeff commit 709b2160bcd8f6f57c8754c73d40550895339c7b Author: Jeff Law Date: Sun Oct 16 10:58:52 2022 -0400 Rename "z" constraint to "Zz" on the H8/300 I want to use Z as a multi-letter constraint. So first we have to adjust the existing use of Z. This does not affect code generation. gcc/ * config/h8300/constraints.md (Zz constraint): Renamed from "z". * config/h8300/movepush.md (movqi_h8sx, movhi_h8sx): Adjust constraint to use Zz instead of Z. diff --git a/gcc/config/h8300/constraints.md b/gcc/config/h8300/constraints.md index 2836232d882..f71996c5f38 100644 --- a/gcc/config/h8300/constraints.md +++ b/gcc/config/h8300/constraints.md @@ -211,7 +211,7 @@ (and (match_code "const_int") (match_test "exact_log2 (ival & 0xff) != -1"))) -(define_constraint "Z" +(define_constraint "Zz" "@internal" (and (match_test "TARGET_H8300SX") (match_code "mem") diff --git a/gcc/config/h8300/movepush.md b/gcc/config/h8300/movepush.md index ada4ddd0beb..e895de8ce59 100644 --- a/gcc/config/h8300/movepush.md +++ b/gcc/config/h8300/movepush.md @@ -28,7 +28,7 @@ [(set (attr "length") (symbol_ref "compute_mov_length (operands)"))]) (define_insn_and_split "*movqi_h8sx" - [(set (match_operand:QI 0 "general_operand_dst" "=Z,rQ") + [(set (match_operand:QI 0 "general_operand_dst" "=Zz,rQ") (match_operand:QI 1 "general_operand_src" "P4>X,rQi"))] "TARGET_H8300SX" "#" @@ -37,7 +37,7 @@ (clobber (reg:CC CC_REG))])]) (define_insn "*movqi_h8sx" - [(set (match_operand:QI 0 "general_operand_dst" "=Z,rQ") + [(set (match_operand:QI 0 "general_operand_dst" "=Zz,rQ") (match_operand:QI 1 "general_operand_src" "P4>X,rQi")) (clobber (reg:CC CC_REG))] "TARGET_H8300SX" @@ -113,7 +113,7 @@ [(set (attr "length") (symbol_ref "compute_mov_length (operands)"))]) (define_insn_and_split "*movhi_h8sx" - [(set (match_operand:HI 0 "general_operand_dst" "=r,r,Z,Q,rQ") + [(set (match_operand:HI 0 "general_operand_dst" "=r,r,Zz,Q,rQ") (match_operand:HI 1 "general_operand_src" "I,P3>X,P4>X,IP8>X,rQi"))] "TARGET_H8300SX" "#" @@ -122,7 +122,7 @@ (clobber (reg:CC CC_REG))])]) (define_insn "*movhi_h8sx" - [(set (match_operand:HI 0 "general_operand_dst" "=r,r,Z,Q,rQ") + [(set (match_operand:HI 0 "general_operand_dst" "=r,r,Zz,Q,rQ") (match_operand:HI 1 "general_operand_src" "I,P3>X,P4>X,IP8>X,rQi")) (clobber (reg:CC CC_REG))] "TARGET_H8300SX"