This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RTL generation


Hello,
     I am porting GCC to a new cpu. It is modified from the GCC arm port.
Currently, I am dealing with the addressing modes. 
I have noticed that when I use "-O2" GCC generates an addressing mode that I 
don't want.
And this addressing mode appears in foobar.c.00.rtl.

If I don't specified the "-O2" option, the kind of addressing mode is not 
generated.

Here is the RTL when using "-O2" option.
(insn:HI 365 363 378 0x285c939c (set (mem:QI (plus:SI (mult:SI (reg/v:SI 12  )
        (const_int 2 [0x2]))
        (reg/v/f:SI 4  )) [0 S1 A8])
        (reg:QI 2 ))

Since it appears in foobar.c.00.rtl , how do I elimiate such addressing mode ?

Thanks.

Mike Wu


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]