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: 68915 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id AF1A73858410 for ; Mon, 8 May 2023 14:31:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AF1A73858410 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683556283; 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=icuOWu687774Fp2vFCLU3zqvzmiCoPeBW3zEaIg+udmpjzdAchlNQL3N0PI34oXAU UjBgeGFy69lfG0MLTMhF8sGvfQIbf4gJ6RekNKVtjS39T72o3zwM36lkERyuCJMmOW MGcGF7AoiG9OYRYVCHd4xiLw/JmQCO1TphY9uilA= 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-Google-Smtp-Source: ACHHUZ60LciWjkAs+asFr2rg6HzytBVHzrWVTC9sgCXpMLJclC9IPi2MQWT+80ShmQVBAnRIhl2xmw== 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+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" 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")]) ;; :::::::::::::::::::: ;; ::