Re: question about lshiftrt:DI when there are no 64bits in the processor

2010-09-15 Thread fanqifei
Thank you, Georg and Ian. I misunderstood the section16.2 of gcc internal manual and thought that the nameless insn (with * ) in .md file can be only used during rtl-->asm. The generated code is correct now. Thanks again! -- -Qifei Fan On Wed, Sep 15, 2010 at 9:27 PM, Georg Lay wrote: > fanqife

Re: question about lshiftrt:DI when there are no 64bits in the processor

2010-09-15 Thread Georg Lay
fanqifei schrieb: > Hi all, > > I am porting gcc to a microprocessor. There are no 64bits instructions > in it. I added a small logical shift right optimization to the md > file(see below). > For the statement “k>>32” in which k is 64bits integer, the > “define_expand” should fail because op2 is 3

Re: question about lshiftrt:DI when there are no 64bits in the processor

2010-09-15 Thread Ian Lance Taylor
fanqifei writes: > I am porting gcc to a microprocessor. There are no 64bits instructions > in it. I added a small logical shift right optimization to the md > file(see below). > For the statement “k>>32” in which k is 64bits integer, the > “define_expand” should fail because op2 is 32, not 1. >

question about lshiftrt:DI when there are no 64bits in the processor

2010-09-15 Thread fanqifei
Hi all, I am porting gcc to a microprocessor. There are no 64bits instructions in it. I added a small logical shift right optimization to the md file(see below). For the statement “k>>32” in which k is 64bits integer, the “define_expand” should fail because op2 is 32, not 1. However, I can see the