How to define special requirements for an address operand?
|[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]|
Hi, I'am trying to write a backend for my own target system. The target has two pointer registers but only one of them can be used to read data from memory and the other one to write data into memory. How could i tell the compiler to use the correct register for the respective operation? I have tried to copy the address into the correct register in the define_expand "mov<mode>", but this seems to confuse the compiler and not working always. I also tried to describe it in the target hook TARGET_LEGITIMATE_ADDRESS_P, but there i have no idea how to find out which operation is performed (write/read). Thanks in advance. best regards, Andreas -- NEU: FreePhone 3-fach-Flat mit kostenlosem Smartphone! Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a