From patchwork Mon May 8 14:30:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeff Law X-Patchwork-Id: 91176 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp2201234vqo; Mon, 8 May 2023 07:31:40 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5Cvsf2C/3RUCKVBfe2ULnjqnF7XLLr5h8H4lEC6Mx54HXCL4GDOHlVXopQ9Ug6EWn+XYdh X-Received: by 2002:a05:6402:1482:b0:50d:8add:3169 with SMTP id e2-20020a056402148200b0050d8add3169mr6718761edv.31.1683556300137; Mon, 08 May 2023 07:31:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683556300; cv=none; d=google.com; s=arc-20160816; b=oZz1YjCzmpWmrDctnpNtpbJHII6nWQSEOtfxISJgf2VcLlt005j2hihG+3AR8i8fNZ on2gEEGM2JuPc75MH8GqeIZWqPUXskAZNHl6zP8YtvAqprSnzPz5FSYN/UwkI3S4vVv9 uDTveFkULk/umzCtivggkHZj/anW1ePIjdg8tYlePU4t9w9wZVmYJdop2/Vz47Yko5Vl FxQwoN/O/7VBnThG48qWp1ne0SjujayctoyzB0+s4LNxpbxwgWG6wyNBDKeAzX5zCDyK ivpKBzS0DO7ngF5O9ZHCK+nQWku/6eh5Ezo3DjGS8i8tgDk3UIgZqBgSUA7anRyCAWLF F4aA== 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=YoiFSSHU9dJhb2id7Vm/T46GtuEiq/pv4uOY0iMZ0bA=; b=O538eep0AY5BW1tFRQbuPZDCqSz9/8tgTP6zEbsnsl1krL1qKGbB7E+B4xFVq0uNjV VNiv93UugsOLp/HUaV1/P5cMqZqaV54sGi3ZWcF6DHilLZKAI7BFWX5bVPBIRNLQP2xx pieZhUZFs3nl8Rf+DJ6tzhEYYnCgYZ5DksHGgSa6bku+d6ODUZLKS4TyaiQnL7vHnX4C YvfVEqzlScqDUtl5m5YUsAvAGwKMi1Ym/H4isUhHfH82KcskuVxsLbeVa07kHu+gGw/b 0SX/dmrb4tK8RrsbiQASUlOffM6hNTZnJjQdBMC1xxF+UDLFrp/sJHuE/69Z6aAFfXFl U4Ig== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gcc.gnu.org header.s=default header.b=wMWy87ad; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gnu.org Received: from sourceware.org (server2.sourceware.org. [2620:52:3:1:0:246e:9693:128c]) by mx.google.com with ESMTPS id x6-20020aa7d6c6000000b0050bf633857asi606573edr.576.2023.05.08.07.31.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 08 May 2023 07:31:40 -0700 (PDT) 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=@gcc.gnu.org header.s=default header.b=wMWy87ad; 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"; 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 C1CB13858410 for ; Mon, 8 May 2023 14:31:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C1CB13858410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683556298; bh=YoiFSSHU9dJhb2id7Vm/T46GtuEiq/pv4uOY0iMZ0bA=; h=Date:To:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=wMWy87adXzhubSNQ0jMGkRVQKlWP4/eW78j9v9HGzNylxNBnDQuCQHL4AHtvDqF2+ KY5110FTFfDGtsX5Y6bAc1Ho5hiyIhYeDasV/LWyWcLdCanwD+tmU0RXJ2PIC6GqWb md82YFWerTCrZkTtsht7kwIot6xhvduXzH15YPkQ= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) by sourceware.org (Postfix) with ESMTPS id B73D63858D32 for ; Mon, 8 May 2023 14:30:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B73D63858D32 Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-24dfc3c662eso3141810a91.3 for ; Mon, 08 May 2023 07:30:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683556254; x=1686148254; 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=YoiFSSHU9dJhb2id7Vm/T46GtuEiq/pv4uOY0iMZ0bA=; b=g6AhEO3rSz42dJQ5mVP8mvCuE3UcUHYzR9FnhMm/PT2LQoZat2DQo/5O3jsfAhW/7z JbtAg7jqXWvcI7avdTUAUpeY+bvrQr69AYj/qWgvyrgAJahAPx3Ugrd8DGUzdUV6WgNM RsKDtyCA4bm6eRBR+3zFCYF/KmYa3m63wPkzDfcJyKckFBkJhqSYpmtFz1sgE+/rBYie m5IzgXrohaGQkxmMpIGWkyrYYPZXluk+aheqIf702rNCbf8ArxQm370GqOM82/j8XT/U bNAOhfgFY7eInjJ2Gjd/qwiku1j88DTXgVBPu4aG1QHi48V5R1ls9FWNq04RnMatICyh SS/w== X-Gm-Message-State: AC+VfDyNnwxxOtyedBmJQpOBIAl/g4Kc30O8je6BE8gr95+7l/7GkVw4 fbXUKH62SDL/akuDhr2LpwEkpirJkWk= X-Received: by 2002:a17:90b:292:b0:24b:56a1:6d0a with SMTP id az18-20020a17090b029200b0024b56a16d0amr10519619pjb.1.1683556254109; Mon, 08 May 2023 07:30:54 -0700 (PDT) Received: from ?IPV6:2601:681:8600:13d0::99f? ([2601:681:8600:13d0::99f]) by smtp.gmail.com with ESMTPSA id b3-20020a63e703000000b005286ea6190esm6424098pgi.20.2023.05.08.07.30.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 08 May 2023 07:30:53 -0700 (PDT) Message-ID: Date: Mon, 8 May 2023 08:30:52 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Content-Language: en-US To: "gcc-patches@gcc.gnu.org" Subject: [committed] Fix minor length computation on stormy16 X-Spam-Status: No, score=-8.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, KAM_NUMSUBJECT, 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.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?1765336730989805319?= X-GMAIL-MSGID: =?utf-8?q?1765336730989805319?= Today's build of xstormy16-elf failed due to a branch to an out of range target. Manual inspection of the assembly code for the affected function (divdi3) showed that the zero-extension patterns were claiming a length of 2, but clearly assembled into 4 bytes. This patch adds an explicit length to the zero extension pattern and appears to resolve the issue in my test builds. Committed to the trunk, Jeff commit 148de3aaac6d2b66c635c76d245c7cd1537fa4e0 Author: Jeff Law Date: Mon May 8 08:28:26 2023 -0600 Fix minor length computation on stormy16 Today's build of xstormy16-elf failed due to a branch to an out of range target. Manual inspection of the assembly code for the affected function (divdi3) showed that the zero-extension patterns were claiming a length of 2, but clearly assembled into 4 bytes. This patch adds an explicit length to the zero extension pattern and appears to resolve the issue in my test builds. gcc/ * config/stormy16/stormy16.md (zero_extendhisi2): Fix length. diff --git a/gcc/config/stormy16/stormy16.md b/gcc/config/stormy16/stormy16.md index 91e4bb1cff7..430ec297e5a 100644 --- a/gcc/config/stormy16/stormy16.md +++ b/gcc/config/stormy16/stormy16.md @@ -299,7 +299,8 @@ (define_insn "zero_extendhisi2" (zero_extend:SI (match_operand:HI 1 "register_operand" "0")))] "" "mov %h0,#0" - [(set_attr "psw_operand" "clobber")]) + [(set_attr "length" "4") + (set_attr "psw_operand" "clobber")]) ;; :::::::::::::::::::: ;; ::