public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: [PATCH] Intrinsics for RDSEED
@ 2012-07-30 13:12 Uros Bizjak
  2012-07-30 13:56 ` Kirill Yukhin
  0 siblings, 1 reply; 3+ messages in thread
From: Uros Bizjak @ 2012-07-30 13:12 UTC (permalink / raw)
  To: Kirill Yukhin; +Cc: Jakub Jelinek, gcc-patches, Michael Zolotukhin, H.J. Lu

On Mon, Jul 30, 2012 at 2:05 PM, Kirill Yukhin <kirill.yukhin@gmail.com> wrote:

> ChangeLog entry:
> 2012-07-25  Kirill Yukhin  <kirill.yukhin@intel.com>
>             Michael Zolotukhin  <michael.v.zolotukhin@intel.com>
>
>         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDSEED_SET): New.
>         (OPTION_MASK_ISA_RDSEED_UNSET): Likewise.
>         (ix86_handle_option): Handle mrdseed option.
>         * config.gcc (i[34567]86-*-*): Add rdseedintrin.h.
>         (x86_64-*-*): Likewise.
>         * config/i386/prfchwintrin.h: New header.
>         * config/i386/cpuid.h (bit_RDSEED): New.
>         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
>         RDSEED support.
>         * config/i386/i386-c.c: Define __RDSEED__ if needed.
>         * config/i386/i386.c (ix86_target_string): Define
>         -mrdseed option.
>         (PTA_RDSEED): New.
>         (ix86_option_override_internal): Handle new option.
>         (ix86_valid_target_attribute_inner_p): Add OPT_mrdseed.
>         (ix86_builtins): Add enum entries for RDSEED* builtins.
>         (ix86_init_mmx_sse_builtins): Define new builtins.
>         (ix86_expand_builtin): Expand RDSEED* builtins.
>         * config/i386/i386.h (TARGET_RDSEED): New.
>         * config/i386/i386.md (rdseed<mode>_1): New.
>         * config/i386/i386.opt (mrdseed): New.
>         * config/i386/x86intrin.h: Include rdseedintrin.h.
>
> testsuite/ChangeLog unchanged.

Please put new insn pattern just after rdrnd<mode>_1 pattern in the
i386.md file.

OK with that change.

Thanks,
Uros.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-08-26 13:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-30 13:12 [PATCH] Intrinsics for RDSEED Uros Bizjak
2012-07-30 13:56 ` Kirill Yukhin
2012-08-26 13:12   ` Gerald Pfeifer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).