From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DF2593870C24; Thu, 27 Jun 2024 18:32:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DF2593870C24 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1719513161; bh=RRst0xNRQkZXhZ5uQBxLVP9QvpGTTwSwGXywmsU3Bh4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=acaWeWzuErTW8rFWbHe2Qo3iYsPBhQAnLpw3w2hzgCWR2nD8ERtP/Z09ybvM+COXb aH5mrJY9V6TFhF3EKx6qXEngSi278guEWZ6tkDcN8f6ZgO7IdgUNfKPL8vOTftZQVb O7608U44tNjcyJQkncYouDgNx39s+pxGSQqz8Q8o= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/115687] RISC-V optimization when "lui" instructions can be merged Date: Thu, 27 Jun 2024 18:32:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 14.1.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D115687 --- Comment #3 from Andrew Pinski --- (In reply to Andrew Pinski from comment #2) > There is some code in cse.cc which does handle this. > See > https://gcc.gnu.org/onlinedocs/gccint/Misc.html#index- > TARGET_005fCONST_005fANCHOR also. MIPS, aarch64 and rs6000 all define TARGET_CONST_ANCHOR (well MIPS sets targetm.const_anchor depending on if it is mips16/micromips or mips32/64).=