Re: Describing multi-register values in RTL

2010-10-26 Thread Jeff Law
On 10/21/10 22:11, Ian Lance Taylor wrote: Paul Koningpaul_kon...@dell.com 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

Re: Describing multi-register values in RTL

2010-10-22 Thread Ian Lance Taylor
Frédéric RISS frederic.r...@gmail.com 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

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

Re: Describing multi-register values in RTL

2010-10-21 Thread Ian Lance Taylor
Frederic Riss frederic.r...@gmail.com 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

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 frederic.r...@gmail.com 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

Re: Describing multi-register values in RTL

2010-10-21 Thread Ian Lance Taylor
Paul Koning paul_kon...@dell.com 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,

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 paul_kon...@dell.com 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