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: [PATCH] Intrinsics for RDSEED


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.


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