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]

Re: Porting GCC


Gyle Yearsley <gyearsley@zilog.com> writes:
>> (insn 15 13 16 (nil) (set (mem/f:SI (pre_dec:SI (reg/f:SI 16 sp)) [0 S4
>> A8])
>>         (mem/f:SI (plus:SI (reg/f:SI 18 virtual-stack-vars)
>>                 (const_int -20 [0xffffffec])) [0 e+0 S4 A32])) -1 (nil)
>>     (nil))
>> 
>> 
>> (define_insn "pushsi"
>>   [(set:SI (mem:SI (pre_dec:SI (reg:SI 16)))
>> 	(match_operand:SI 0 "general_operand" "r,m"))]
>>   ""
>>   "@
>> 	push.q %0
>> 	push.q %0"
>> )

One thing to check is that GO_IF_LEGITIMATE_ADDRESS accepts:

  (plus:SI (reg/f:SI 18 virtual-stack-vars)
           (const_int -20 [0xffffffec]))

as a valid address for SImode.

Richard


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