Re: Describing multi-register values in RTL

2010-10-26 Thread Jeff Law
On 10/21/10 22:11, Ian Lance Taylor wrote: Paul Koning writes: To take that example, on the pdp11 an SImode is two HImodes. Could the RTL template in the MD file for, say, addsi3 split that into two or three insns that operate on HImode values and describe the actual instructions? In this c

Re: Describing multi-register values in RTL

2010-10-22 Thread Ian Lance Taylor
Frédéric RISS writes: >> The lower subreg pass will do that for you if you have the right set of >> insns. > > Could you expand a bit on what the 'right set of instructions' is or > even better give an example of an md file where we could find an > example? E.g., on a 32-bit system, start with a

Re: Describing multi-register values in RTL

2010-10-21 Thread Frédéric RISS
Le jeudi 21 octobre 2010 à 21:11 -0700, Ian Lance Taylor a écrit : > Paul Koning writes: > > > To take that example, on the pdp11 an SImode is two HImodes. Could > > the RTL template in the MD file for, say, addsi3 split that into two > > or three insns that operate on HImode values and describe

Re: Describing multi-register values in RTL

2010-10-21 Thread Ian Lance Taylor
Paul Koning writes: > To take that example, on the pdp11 an SImode is two HImodes. Could > the RTL template in the MD file for, say, addsi3 split that into two > or three insns that operate on HImode values and describe the actual > instructions? In this case: add high parts, then add low parts

Re: Describing multi-register values in RTL

2010-10-21 Thread Paul Koning
On Oct 21, 2010, at 8:15 PM, Ian Lance Taylor wrote: > Frederic Riss writes: > >> Is it possible to describe multi-register values in RTL when the >> subparts of the value aren't stored in consecutive registers? For >> example having a DI value constructed from 2 unrelated SI registers >> (with

Re: Describing multi-register values in RTL

2010-10-21 Thread Ian Lance Taylor
Frederic Riss writes: > Is it possible to describe multi-register values in RTL when the > subparts of the value aren't stored in consecutive registers? For > example having a DI value constructed from 2 unrelated SI registers > (without losing the semantic of the original DI value) ? Not really

Describing multi-register values in RTL

2010-10-21 Thread Frederic Riss
Hi, Is it possible to describe multi-register values in RTL when the subparts of the value aren't stored in consecutive registers? For example having a DI value constructed from 2 unrelated SI registers (without losing the semantic of the original DI value) ? Thanks a lot, Fred