From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30223 invoked by alias); 3 Jun 2009 10:36:26 -0000 Received: (qmail 30161 invoked by uid 48); 3 Jun 2009 10:36:14 -0000 Date: Wed, 03 Jun 2009 10:36:00 -0000 Message-ID: <20090603103614.30160.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/40327] Use less instructions to add some constants to register In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "steven at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-06/txt/msg00113.txt.bz2 ------- Comment #1 from steven at gcc dot gnu dot org 2009-06-03 10:36 ------- This code comes from the split2 (split insns after reload). So this is target specific. It surprises me that non-legitimate constants are accepted before reload on ARM (at least in thumb mode). It may be (and IMHO, probably is) better to split the constant early, e.g. during expand. A REG_EQUAL note can be used to remember the original value added. -- steven at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Component|rtl-optimization |target Ever Confirmed|0 |1 GCC build triplet|i686-linux | GCC host triplet|i686-linux | Last reconfirmed|0000-00-00 00:00:00 |2009-06-03 10:36:14 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40327