Re: Reload problem: asm operand requires impossible reload

2009-05-18 Thread Ian Lance Taylor
"Bingfeng Mei" writes: > In our porting, "movm" is implemented as define_expand. Register move and > memory > move are implmeneted in different define_insn. Register move pattern has no > "m" alternative, and thus causes the "asm operand requires impossible reload". > I should merge these two pa

RE: Reload problem: asm operand requires impossible reload

2009-05-18 Thread Bingfeng Mei
text to avoid future confusion. Cheers, Bingfeng Mei Broadcom UK > -Original Message- > From: Ian Lance Taylor [mailto:i...@google.com] > Sent: 01 May 2009 15:32 > To: Bingfeng Mei > Cc: gcc@gcc.gnu.org; bernd.schm...@analog.com; weig...@de.ibm.com > Subject: Re: Re

Re: Reload problem: asm operand requires impossible reload

2009-05-01 Thread Ian Lance Taylor
"Bingfeng Mei" writes: > Actually, they do contain references to pseudo-registers. Only in following > code (reload function in reload1.c, after the reload_as_needed function > that emits error message), pseudo registers are replaced with requivalent > memory operands. Yes, but the insns generat

RE: Reload problem: asm operand requires impossible reload

2009-05-01 Thread Bingfeng Mei
> -Original Message- > From: Ian Lance Taylor [mailto:i...@google.com] > Sent: 01 May 2009 15:32 > To: Bingfeng Mei > Cc: gcc@gcc.gnu.org; bernd.schm...@analog.com; weig...@de.ibm.com > Subject: Re: Reload problem: asm operand requires impossible reload > >

Re: Reload problem: asm operand requires impossible reload

2009-05-01 Thread Ian Lance Taylor
"Bingfeng Mei" writes: > I experienced "asm operand requires impossible reload" error in our private > porting. > After digging into the reloading pass, I found something a bit fishy. > > The error message is produced in reload_as_needed function (reload1.c) > > ... > /* If this wa

Reload problem: asm operand requires impossible reload

2009-05-01 Thread Bingfeng Mei
Hello, I experienced "asm operand requires impossible reload" error in our private porting. After digging into the reloading pass, I found something a bit fishy. The error message is produced in reload_as_needed function (reload1.c) ... /* If this was an ASM, make sure that all

Re: register reload problem in global register allocation

2007-03-21 Thread Seongbae Park
On 3/21/07, wonsubkim <[EMAIL PROTECTED]> wrote: I have some problems in global register allocation phase. I have described some simple architecture using machine description and target macro file. I use gnu GCC version 4.1.1. But, "can't combine" message is printed out in *.c.37.greg file in g

register reload problem in global register allocation

2007-03-20 Thread wonsubkim
I have some problems in global register allocation phase. I have described some simple architecture using machine description and target macro file. I use gnu GCC version 4.1.1. But, "can't combine" message is printed out in *.c.37.greg file in global register allocation phase. After i have tra

RE: Reload Problem in delete_output_reload

2006-12-05 Thread Unruh, Erwin
>> I did find something which might be the real problem. Within >> delete_output_reload there are two calls to count_occurrences. The >> second one will be called with parameters > >... > >> Due to this difference, no occurence is found. So the second >> operand=20 of the (plus:DI ...) is not

Re: Reload Problem in delete_output_reload

2006-12-05 Thread Ulrich Weigand
Erwin Unruh wrote: > Sorry, I mislead you. Somehow I did confuse (mem/c:DI (reg:SI 2 2) [0 S8 > A8]) > with (reg:DI 2). Register 2 is used correctly. > I do not think any reload is inherited in this case. Ah, right. That did confuse me ;-) > I did find something which might be the real problem.

RE: Reload Problem in delete_output_reload

2006-12-05 Thread Unruh, Erwin
>From: Ulrich Weigand > >Erwin Unruh wrote: > >> I have a problem with delete_output_reload. It sometimes deletes >> instructions which are needed. Here an analysis of a recent >case (In a >> private version of the S390 port). The original S390 shows >almost the >> same reloads, but chooses d

Re: Reload Problem in delete_output_reload

2006-12-04 Thread Ulrich Weigand
Erwin Unruh wrote: > I have a problem with delete_output_reload. It sometimes deletes > instructions > which are needed. Here an analysis of a recent case (In a private > version of > the S390 port). The original S390 shows almost the same reloads, but > chooses > different registers. What GCC ve

Reload Problem in delete_output_reload

2006-12-04 Thread Unruh, Erwin
Hello, I have a problem with delete_output_reload. It sometimes deletes instructions which are needed. Here an analysis of a recent case (In a private version of the S390 port). The original S390 shows almost the same reloads, but chooses different registers. Before reload we have (insn 1597 169

Re: Reload problem

2006-04-13 Thread Ramana Radhakrishnan
ter and then generate equivalent cmp and jmp instructions. Do this split after reload_completed. > > My 2 cents . > > HTH > > cheers > Ramana > > On Thu, 2006-04-13 at 21:17 +0800, Ching-Hua Chang wrote: > > Hi, > > I had wrote doloop_end instruction

Re: Reload problem

2006-04-13 Thread Ramana Radhakrishnan
ke care of loading this into a register and then generate equivalent cmp and jmp instructions. My 2 cents . HTH cheers Ramana On Thu, 2006-04-13 at 21:17 +0800, Ching-Hua Chang wrote: > Hi, > I had wrote doloop_end instruction to support hwloop. > When try to compile linux kernel, I me

Reload problem

2006-04-13 Thread Ching-Hua Chang
Hi, I had wrote doloop_end instruction to support hwloop. When try to compile linux kernel, I meet a reload problem, the error message as follow. What kinds of instuction pattern should I add to support the reload that compiler need ? Thanks, Aladdin the constrant 'q'

Re: reload problem in GCC 4.1

2006-03-08 Thread Jim Wilson
Rajkishore Barik wrote: problems with the following instruction in post-reload.c:391 in "reload_cse_simplify_operands" function stating that the "insn does not satisfy constraint". There are lots of different ways that this problem can occur. It is hard to say much without having a testcase I

Re: reload problem in GCC 4.1

2006-03-06 Thread Rajkishore Barik
The architecture for which I generate code is Intel x86. On 3/6/06, Rajkishore Barik <[EMAIL PROTECTED]> wrote: > Hi, > > I was trying to feed the "reload" phase with a different hardware > register assignment to pseudo registers (using reg_renumber array) > than the ones produced by local-alloc o

reload problem in GCC 4.1

2006-03-06 Thread Rajkishore Barik
Hi, I was trying to feed the "reload" phase with a different hardware register assignment to pseudo registers (using reg_renumber array) than the ones produced by local-alloc or global-alloc. However, I get problems with the following instruction in post-reload.c:391 in "reload_cse_simplify_operan

RE: Global Reload Problem

2005-02-12 Thread Gyle Yearsley
Thanks for you help. I will look at some of the changes you suggested. Gyle -Original Message- From: James E Wilson [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 09, 2005 2:00 PM To: Gyle Yearsley Cc: gcc@gcc.gnu.org Subject: RE: Global Reload Problem On Thu, 2005-02-03 at 10