From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7421 invoked by alias); 17 Oct 2004 08:54:31 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 7414 invoked from network); 17 Oct 2004 08:54:30 -0000 Received: from unknown (HELO ns.itscom.net) (219.110.2.32) by sourceware.org with SMTP; 17 Oct 2004 08:54:30 -0000 Received: (qmail 3467 invoked from network); 17 Oct 2004 17:54:29 +0900 Received: from unknown (HELO ns.itscom.net) (192.168.1.135) by mtoichi02e with SMTP; 17 Oct 2004 17:54:29 +0900 Received: (qmail 27126 invoked from network); 17 Oct 2004 17:54:28 +0900 Received: from unknown (HELO ?192.168.10.239?) (131.113.23.109) by mtiichi05e with SMTP; 17 Oct 2004 17:54:28 +0900 Date: Sun, 17 Oct 2004 17:16:00 -0000 From: Shinpei Kato To: Shinpei Kato Subject: pseudo register in reload progress Cc: gcc@gcc.gnu.org In-Reply-To: <20041015144026.CE11.SHINNY@j02.itscom.net> References: <20041015144026.CE11.SHINNY@j02.itscom.net> Message-Id: <20041017173903.0764.SHINNY@j02.itscom.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-SW-Source: 2004-10/txt/msg00670.txt.bz2 Hi, Sorry, I could the previous problem by imploving movdf insns. However I got a new problem about gen_reg_rtx() function. To achieve a move pattern of GR reg => FP reg, we need to emit the following codes. # store $6 to upper 32-bit of $f0, lower 32-bit is filled with 0 mtc1h $6,$f0 # store $5 to lower 32-bit of $f1, upper 32-bit is filled with 0 mtc1 $5,$f1 # OR between fp regs for $f0, $f0, $f1 Here, $f1 is temporary register. So I wanna use gen_reg_rtx(DFmode) to create a pseudo register but gen_reg_rtx cannot be used if no_new_pseudos holds true. I tried to use SECONDARY_INPUT_RELOAD_CLASS and SECONDARY_OUT_RELOAD_CLASS but SECONDARY_INPUT_RELOAD_CLASS doesn't allow creating the same secondary register as class. In my case, class is FP register and secondary register is also FP register I think. So it fails to compile. How could I emit codes above to achieve GR reg to FP reg move? I need your help. Regards, Shinpei Kato