This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH,rs6000] Add built-in support for new Power9 darn (deliver a random number) instruction
- From: Peter Bergner <bergner at vnet dot ibm dot com>
- To: Bill Schmidt <wschmidt at linux dot vnet dot ibm dot com>, Segher Boessenkool <segher at kernel dot crashing dot org>
- Cc: Kelvin Nilsen <kdnilsen at linux dot vnet dot ibm dot com>, gcc-patches at gcc dot gnu dot org
- Date: Mon, 09 May 2016 13:51:11 -0500
- Subject: Re: [PATCH,rs6000] Add built-in support for new Power9 darn (deliver a random number) instruction
- Authentication-results: sourceware.org; auth=none
- References: <572B7419 dot 7030205 at linux dot vnet dot ibm dot com> <20160509135835 dot GB31139 at gate dot crashing dot org> <1462815356 dot 6359 dot 1 dot camel at oc8801110288 dot ibm dot com>
On Mon, 2016-05-09 at 12:35 -0500, Bill Schmidt wrote:
> On Mon, 2016-05-09 at 08:58 -0500, Segher Boessenkool wrote:
> > On Thu, May 05, 2016 at 10:26:01AM -0600, Kelvin Nilsen wrote:
> > Do we really want to #define short words like "darn"? If this is already
> > set in stone, so be it.
>
> I don't think we do, and in any case altivec.h would not be the place to
> do it. darn is not a vector instruction.
>
> For these, just having __builtin_darn* be the available interfaces will
> be fine.
>
Agreed, I don't think we need a fancy short names for this builtin
which will be infrequently used. The __builtin_darn name is enough.
Peter