From patchwork Tue Aug 1 13:03:32 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 1815509 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=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gjlay.de header.i=@gjlay.de header.a=rsa-sha256 header.s=strato-dkim-0002 header.b=bhezOnac; dkim=fail reason="signature verification failed" header.d=gjlay.de header.i=@gjlay.de header.a=ed25519-sha256 header.s=strato-dkim-0003 header.b=X31JQ/lO; dkim-atps=neutral Received: from server2.sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (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 4RFb0723Rdz1ybb for ; Tue, 1 Aug 2023 23:03:51 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 61BFE38582A4 for ; Tue, 1 Aug 2023 13:03:48 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mo4-p00-ob.smtp.rzone.de (mo4-p00-ob.smtp.rzone.de [85.215.255.21]) by sourceware.org (Postfix) with ESMTPS id 3A8D43858C66 for ; Tue, 1 Aug 2023 13:03:35 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3A8D43858C66 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gjlay.de Authentication-Results: sourceware.org; spf=none smtp.mailfrom=gjlay.de ARC-Seal: i=1; a=rsa-sha256; t=1690895013; cv=none; d=strato.com; s=strato-dkim-0002; b=qls0qBrOFQG6iydeV4PeVJQHbOOO7twqM9ksInIeD0bhlQ8SwKaijmUvHjWeGLVQAz t21+yxS0zALVHdOA7KrBzp1ke4+khUi7LmjtAZvn3PEPOTvtfHk3FEPhH5YqLuL3goRz pvAvSGYE0dU648brCJ2lojA/1PQKKNbVoncajaoVuQofKAjkDFRPUDcZkdoMzpvfu8I2 R6tvTDXpA/uBZLlXCp+xSS1Mfcrm0rOvARzxli2mj0PdWQR657cjZXYL7rXzqdZclsbZ KEPidXzSd0O6LeHOc6786ldypU8RMkLGS709TiAVbh/XOwfJq0jubisBs8KOOz3FM4Bp AO9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1690895013; s=strato-dkim-0002; d=strato.com; h=Subject:From:To:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=IfXYspaEbajMNQXUYjBQw046Ad5mJ48YQABVM/8USRQ=; b=JADZ06dg4e34wqqqwSCymbF0sI589FmE9uyg3D3HUgkdPLKbkVnOosbhEkCoUE9lcx NVlNly+wHxY4S0mY76I8npI6pdy4MaYKcw8YurGqE9t1z6XQMNNc14A3m1H8R0ds57j2 QzAB/5PSBQQpjgQaNbn9kxCBaBaH+O7C+61pJSA7wQjK/MK9GU8FtSEk4CJUzT5/OvKA wZ3FRwQ/PHtRaqOzwhsf1jfudWUUmdOUIAcmBGkhSWK4MvguOVcdpFIwwtaD3owQbssf i4iBz1EGcyeOCnp/6G0Oq7ut8cE2sFPJ6yoc/oJYO55efhZEoMNn5EQ18u/d+9GLdXvy 2dMw== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo00 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1690895013; s=strato-dkim-0002; d=gjlay.de; h=Subject:From:To:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=IfXYspaEbajMNQXUYjBQw046Ad5mJ48YQABVM/8USRQ=; b=bhezOnac2m6uYGF2d4I9GC/NG/GZhp3mrNGItEajMMXPgmV9a1X+mup65IlPbqyka+ 9TP2T7c0q5Xk4f+1NPPqLdN4I+FOJzlj0ft4CD0bWhNHip9Jd4EiZ0ep7F2oCMxL7C7D 70NLb8oSnj2YN6yXyRk3KcwHRxSUx8xb4j3NUSVkcOW0Ms8pLLQhK5VD2IRvlItRkmTb ZeX/uLF5iUuxhc0q63pmPkt4mkHcLLcK2wa4KnK7kxB6j7dlSveJ4tye7BY1ER7RCDRp oxOW4JorWJbvCJskKPI5U1wGLY79HyR1UvAG8oEL81HDF2YrhgzgKZzFmFd6f4rhnVM1 fE2Q== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1690895013; s=strato-dkim-0003; d=gjlay.de; h=Subject:From:To:Date:Message-ID:Cc:Date:From:Subject:Sender; bh=IfXYspaEbajMNQXUYjBQw046Ad5mJ48YQABVM/8USRQ=; b=X31JQ/lOF0Fdc5wyP5TfztLBS/Su/Q/Ge2YIHIna+b+zXCYYiCMUtj+vFL2Z+i/wII nPOJ+BE/lOqneD3JBuCg== X-RZG-AUTH: ":LXoWVUeid/7A29J/hMvvT3koxZnKT7Qq0xotTetVnKkRmM69o2y+LiO3MutATA==" Received: from [192.168.2.102] by smtp.strato.de (RZmta 49.6.6 DYNA|AUTH) with ESMTPSA id Cd29bez71D3Xchv (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate) for ; Tue, 1 Aug 2023 15:03:33 +0200 (CEST) Message-ID: <0e42ec71-3927-b06a-e531-c70ca5b6ab34@gjlay.de> Date: Tue, 1 Aug 2023 15:03:32 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Content-Language: en-US To: gcc-patches@gcc.gnu.org From: Georg-Johann Lay Subject: [Patch,avr,committed] Fix PR target/110220: Set JUMP_LABEL as required. X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, 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.29 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 Sender: "Gcc-patches" Committed as obvious. An insn emitted by avr specific RTL optimization pass missed setting of its JUMP_LABEL. Johann target/110220: Set JUMP_LABEL and LABEL_NUSES of new branch insn generated by target specific RTL optimization pass .avr-casesi. gcc/ PR target/110220 * config/avr/avr.cc (avr_optimize_casesi): Set JUMP_LABEL and LABEL_NUSES of new conditional branch instruction. diff --git a/gcc/config/avr/avr.cc b/gcc/config/avr/avr.cc index 0447641a8e9..25f3f4c22e0 100644 --- a/gcc/config/avr/avr.cc +++ b/gcc/config/avr/avr.cc @@ -644,9 +644,11 @@ avr_optimize_casesi (rtx_insn *insns[5], rtx *xop) emit_insn (gen_add (reg, reg, gen_int_mode (-low_idx, mode))); rtx op0 = reg; rtx op1 = gen_int_mode (num_idx, mode); rtx labelref = copy_rtx (xop[4]); - emit_jump_insn (gen_cbranch (gen_rtx_fmt_ee (GTU, VOIDmode, op0, op1), - op0, op1, - labelref)); + rtx xbranch = gen_cbranch (gen_rtx_fmt_ee (GTU, VOIDmode, op0, op1), + op0, op1, labelref); + rtx_insn *cbranch = emit_jump_insn (xbranch); + JUMP_LABEL (cbranch) = xop[4]; + ++LABEL_NUSES (xop[4]); seq1 = get_insns(); last1 = get_last_insn();