Re: Updating an operand in RTL for a builtin function

2007-05-11 Thread Paul Brook
On Friday 11 May 2007, Dave Korn wrote: > On 11 May 2007 19:27, Paul Brook wrote: > >>> > result = __macf(operand1, operand2, operand3); > >> After the builtin i want to have the following operations also to > >> carried out operand3 = result ; > > > > Why do you want this to happen? > > I t

RE: Updating an operand in RTL for a builtin function

2007-05-11 Thread Fu, Chao-Ying
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of > Dave Korn > Sent: Friday, May 11, 2007 11:32 AM > To: 'Paul Brook'; gcc@gcc.gnu.org > Cc: 'Mohamed Shafi'; 'Andrew Haley' > Subject: RE: Updating an oper

RE: Updating an operand in RTL for a builtin function

2007-05-11 Thread Dave Korn
On 11 May 2007 19:27, Paul Brook wrote: >>> > result = __macf(operand1, operand2, operand3); > >>> > } >>> > >>> > Requirement : I need the value of operand3 and result to be same > >>> after calling the builtin. > But this is not happening. >>> >>> What do you mean, exactly? C only ha

Re: Updating an operand in RTL for a builtin function

2007-05-11 Thread Paul Brook
> > > result = __macf(operand1, operand2, operand3); > > > > > > } > > > > > > Requirement : I need the value of operand3 and result to be same > > > after calling the builtin. > > > But this is not happening. > > > > What do you mean, exactly? C only has call by value, and gcc's > > bui

Re: Updating an operand in RTL for a builtin function

2007-05-11 Thread Mohamed Shafi
On 5/4/07, Andrew Haley <[EMAIL PROTECTED]> wrote: Mohamed Shafi writes: > I am trying to implement a builtin function __macf for a private target. > I have added the required target hooks for this. > Say for the following code > > int main() > { > int operand1 = 2; > int operand2 =

Re: Updating an operand in RTL for a builtin function

2007-05-04 Thread Andrew Haley
Mohamed Shafi writes: > I am trying to implement a builtin function __macf for a private target. > I have added the required target hooks for this. > Say for the following code > > int main() > { > int operand1 = 2; > int operand2 = 3; > int operand3 = 4; > int result; > >