This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PING: A Far Less Ambitious AltiVec patch


> X-Original-To: geoffk@foam.wonderslug.com
> Cc: Ziemowit Laski <zlaski@ziemas.net>, gcc-patches@gcc.gnu.org,
>         Segher Boessenkool <segher@kernel.crashing.org>
> From: Ziemowit Laski <zlaski@apple.com>
> Date: Fri, 20 Feb 2004 13:02:36 -0800
> X-OriginalArrivalTime: 20 Feb 2004 21:10:20.0375 (UTC) FILETIME=[F27BBE70:01C3F7F5]
> 
> 
> On 20 Feb, 2004, at 12.49, Geoff Keating wrote:
> >>>
> >>> --- 8960,8966 ----
> >>>           || REGNO (XEXP (x, 0)) >= 32)
> >>>         output_operand_lossage ("invalid %%P value");
> >>>         else
> >>> !       fprintf (file, "%s", reg_names[REGNO (XEXP (x, 0))]);
> >>>         return;
> >>>
> >>>       case 'q':
> >>>
> >>> You should update the comment immediately above this code.
> >>
> >> The latest version looks like this:
> >>
> >> --- 9019,9031 ----
> >>            || REGNO (XEXP (x, 0)) >= 32)
> >>          output_operand_lossage ("invalid %%P value");
> >>          else
> >> + #if TARGET_MACHO
> >> +       /* The Darwin assembler requires a register name rather than
> >> +          merely a number.  */
> >> +       fprintf (file, "%s", reg_names[REGNO (XEXP (x, 0))]);
> >> + #else
> >>          fprintf (file, "%d", REGNO (XEXP (x, 0)));
> >> + #endif
> >>          return;
> >>
> >
> > That's worse.  Use reg_names always.
> 
> I can't -- non-Darwin assemblers will barf on it.

No, they won't.  Try it and see.

-- 
- Geoffrey Keating <geoffk@geoffk.org>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]