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: PR target/44844: Wrong _rdrand_uXX intrinsic implementation


On Tue, Jul 6, 2010 at 7:46 PM, H.J. Lu <hongjiu.lu@intel.com> wrote:

> This patch adds a loop to rdrand<mode> to check if the carry flag is
> valid as specified by RDRAND spec. ?Tested on Linux/x86-64. ?OK to
> install?

> gcc/
>
> 2010-07-06 ?H.J. Lu ?<hongjiu.lu@intel.com>
>
> ? ? ? ?PR target/44844
> ? ? ? ?* config/i386/i386.md (rdrand<mode>): Changed to expand to
> ? ? ? ?retry if the carry flag isn't valid.
> ? ? ? ?(rdrand<mode>_1): New.
>
> gcc/testsuite/
>
> 2010-07-06 ?H.J. Lu ?<hongjiu.lu@intel.com>
>
> ? ? ? ?PR target/44844
> ? ? ? ?* gcc.target/i386/rdrand-1.c: Scan "jnc".
> ? ? ? ?* gcc.target/i386/rdrand-2.c: Likewise.
> ? ? ? ?* gcc.target/i386/rdrand-3.c: Likewise.

OK for mainline.

Thanks,
Uros.


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