Re: How to target a processor with very primitive addressing modes?

2024-06-18 Thread Mikael Pettersson via Gcc
On Sat, Jun 8, 2024 at 5:11 PM Jeff Law wrote: > > > > On 6/8/24 3:32 AM, Mikael Pettersson via Gcc wrote: > > On Thu, Jun 6, 2024 at 8:59 PM Dimitar Dimitrov wrote: > >> Have you tried defining TARGET_LEGITIMIZE_ADDRESS for your target? From > >> a quick

Re: How to target a processor with very primitive addressing modes?

2024-06-08 Thread Mikael Pettersson via Gcc
On Thu, Jun 6, 2024 at 8:59 PM Dimitar Dimitrov wrote: > Have you tried defining TARGET_LEGITIMIZE_ADDRESS for your target? From > a quick search I see that the iq2000 and rx backends are rewriting some > PLUS expression addresses with insn sequence to calculate the address. I have partial succes

How to target a processor with very primitive addressing modes?

2024-06-06 Thread Mikael Pettersson via Gcc
I'm working on a GCC backend for an older processor with very primitive addressing support. The only way to load from or store to memory is to compute the address into a register, and then use that register in the load or store instruction. There are no immediate or register offsets in memory acces

Re: gcc tricore porting

2023-06-19 Thread Mikael Pettersson via Gcc
(Note I'm reading the gcc mailing list via the Web archives, which doesn't let me create "proper" replies. Oh well.) On Sun Jun 18 09:58:56 GMT 2023, wrote: > Hi, this is my first time with open source development. I worked in > automotive for 22 years and we (generally) were using tricore series