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: 3043 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4ac7:0:0:0:0:0 with SMTP id y7csp1051861wrs; Sun, 16 Oct 2022 08:04:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4XW33t6KjxsL+k+jSzQ5+V3A0SgODurdX4cDUv4rrOhFxzftIaweRfWNYJ3k1cOYLb5di7 X-Received: by 2002:a05:6402:2201:b0:44f:443e:2a78 with SMTP id cq1-20020a056402220100b0044f443e2a78mr6408549edb.76.1665932693854; Sun, 16 Oct 2022 08:04:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665932693; cv=none; d=google.com; s=arc-20160816; b=pBhfGHSf/uUr5XHOSaGlpDXIYyaUpZGHTR//VUYQ7y+Q3AYDJ08CMOqcn5/uUua8KD xRQD9boP/WkOuVcwRsvb+DGwK/17i6IGQos6vkmZj07DaNW1WoOpuWvGEkD+BsIOLyBG QdltCbddUL9iUr8zVSTqTZr9HEF+Yehbhp1YtLrOcMCoj7klzxq6T0l6ohTTQe/K1FBF PbJPhx+b0mKSLx81RjylswvGtBOqKSbKDrunfwrshMXBdLZA5oTQbe/yhfAgaiA/8t2P lllMR/LYTfVqkeoo2zOThSkaNPRvZrHTZomQKCpBuS3uVZsquc0KlsqV7nu7n3XIAclr K24w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:reply-to:from:list-subscribe:list-help:list-post :list-archive:list-unsubscribe:list-id:precedence:subject:to :content-language:user-agent:mime-version:date:message-id :dmarc-filter:delivered-to:dkim-signature:dkim-filter; bh=IYgilKO8RG3tMa5hrPxHRTzhtPxk3L3vq66kyGWnolc=; b=hyg4IxBJ8j/ZT37Ome7Juh/C6IikFIOpnhI3sCIYKsYuXlWBPv9uplpuKGKGeHSkOg MXs9HS9N++mhBIavMRxiajnH8L7FpOL1aqjvVRCgPcaCIJ62FwoGI2dGUqTIp7YPMd4q g/XLtR313TVZJUTYIv9/d2ZRDXMOusgegta0jUkBZCc/rUvV+Mig/rZ3VsYRCeyCkJ0u iH6udup97fvVOCq2/7UtNGgAUnRgCUMQsJ11HWohwQYFdudCvQ6WYUHOVPw9vkrcTtwt LtulM2wtkww/7q/CkW2JwMwxBzKYCu+UvgbI/vzud7fehQ6nQO52hY53b2msbKtUAhow Xerg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=RZ1WwWYZ; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id gn17-20020a1709070d1100b0078e254ae418si6276374ejc.640.2022.10.16.08.04.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 16 Oct 2022 08:04:53 -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=pass header.i=@gcc.gnu.org header.s=default header.b=RZ1WwWYZ; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E04AC385780E for ; Sun, 16 Oct 2022 15:04:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E04AC385780E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1665932692; bh=IYgilKO8RG3tMa5hrPxHRTzhtPxk3L3vq66kyGWnolc=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=RZ1WwWYZVfA+MqFmJkxa8AcuxR4N9sa52YotBWhvsPEMtmhV9BbbZLrgRtAZCahBG dEMlbSIm8TMOWVZeCPXaaAKvt13Vu+RaBRGqY7ZB2Z0G0pHc1rbVvNvWYJlNCPoFY8 dhPhMxbeaadUQmoHXsZiSELv5BpGc7DCAk06R/rU= 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-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+ouuuleilei=gmail.com@gcc.gnu.org Sender: "Gcc-patches" X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1746857040242401621?= X-GMAIL-MSGID: =?utf-8?q?1746857040242401621?= 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"