Re: [PATCH, i386] Add RDRND and MOVBE for AMD bdver4

2014-08-08 Thread Uros Bizjak
On Fri, Aug 8, 2014 at 12:14 PM, Gopalasubramanian, Ganesh
 wrote:
>> OK for mainline.
>
> Thanks Uros. Committed to revision 213572
> I would like to backport to 4.9 branch too.
> Is it OK?

Yes, looks safe for backport.

Thanks,
Uros.


RE: [PATCH, i386] Add RDRND and MOVBE for AMD bdver4

2014-08-08 Thread Gopalasubramanian, Ganesh
> OK for mainline.

Thanks Uros. Committed to revision 213572
I would like to backport to 4.9 branch too.
Is it OK?

- Ganesh


Re: [PATCH, i386] Add RDRND and MOVBE for AMD bdver4

2014-08-04 Thread Rainer Orth
Uros Bizjak  writes:

> On Mon, Aug 4, 2014 at 12:58 PM, Gopalasubramanian, Ganesh
>  wrote:
>> Below patch adds PTA_RDRND and PTA_MOVBE for bdver4.
>>
>> Bootstrap passes.
>>
>> Ok for upstream?
>
>> 2014-08-04 Ganesh Gopalasubramanian  
>>
>> +* gcc/config/i386/i386.c (ix86_option_override_internal): Add
>> +   PTA_RDRND and PTA_MOVBE for bdver4.
>
> OK for mainline.

... but please correct the ChangeLog entry to lose the gcc/ prefix.

Rainer

-- 
-
Rainer Orth, Center for Biotechnology, Bielefeld University


Re: [PATCH, i386] Add RDRND and MOVBE for AMD bdver4

2014-08-04 Thread Uros Bizjak
On Mon, Aug 4, 2014 at 12:58 PM, Gopalasubramanian, Ganesh
 wrote:
> Below patch adds PTA_RDRND and PTA_MOVBE for bdver4.
>
> Bootstrap passes.
>
> Ok for upstream?

> 2014-08-04 Ganesh Gopalasubramanian  
>
> +* gcc/config/i386/i386.c (ix86_option_override_internal): Add
> +   PTA_RDRND and PTA_MOVBE for bdver4.

OK for mainline.

Thanks,
Uros.


[PATCH, i386] Add RDRND and MOVBE for AMD bdver4

2014-08-04 Thread Gopalasubramanian, Ganesh
Below patch adds PTA_RDRND and PTA_MOVBE for bdver4.

Bootstrap passes.

Ok for upstream?

Regards
Ganesh

Index: gcc/ChangeLog
===
--- gcc/ChangeLog   (revision 213568)
+++ gcc/ChangeLog   (working copy)
@@ -24,6 +24,11 @@

2014-08-04 Ganesh Gopalasubramanian  

+* gcc/config/i386/i386.c (ix86_option_override_internal): Add
+   PTA_RDRND and PTA_MOVBE for bdver4.
+
+2014-08-04 Ganesh Gopalasubramanian  
+
* config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's 
extended
family information. Handle BTVER2 cpu with cpuid family value.

Index: gcc/config/i386/i386.c
===
--- gcc/config/i386/i386.c  (revision 213568)
+++ gcc/config/i386/i386.c  (working copy)
@@ -3267,12 +3267,13 @@ ix86_option_override_internal (bool main
| PTA_FMA | PTA_PRFCHW | PTA_FXSR | PTA_XSAVE
| PTA_XSAVEOPT | PTA_FSGSBASE},
  {"bdver4", PROCESSOR_BDVER4, CPU_BDVER4,
-PTA_64BIT | PTA_MMX | PTA_SSE | PTA_SSE2 | PTA_SSE3
-| PTA_SSE4A | PTA_CX16 | PTA_ABM | PTA_SSSE3 | PTA_SSE4_1
-| PTA_SSE4_2 | PTA_AES | PTA_PCLMUL | PTA_AVX | PTA_AVX2
+   PTA_64BIT | PTA_MMX | PTA_SSE | PTA_SSE2 | PTA_SSE3
+   | PTA_SSE4A | PTA_CX16 | PTA_ABM | PTA_SSSE3 | PTA_SSE4_1
+   | PTA_SSE4_2 | PTA_AES | PTA_PCLMUL | PTA_AVX | PTA_AVX2
| PTA_FMA4 | PTA_XOP | PTA_LWP | PTA_BMI | PTA_BMI2
| PTA_TBM | PTA_F16C | PTA_FMA | PTA_PRFCHW | PTA_FXSR
-   | PTA_XSAVE | PTA_XSAVEOPT | PTA_FSGSBASE},
+   | PTA_XSAVE | PTA_XSAVEOPT | PTA_FSGSBASE | PTA_RDRND
+   | PTA_MOVBE},
   {"btver1", PROCESSOR_BTVER1, CPU_GENERIC,
PTA_64BIT | PTA_MMX |  PTA_SSE  | PTA_SSE2 | PTA_SSE3
| PTA_SSSE3 | PTA_SSE4A |PTA_ABM | PTA_CX16 | PTA_PRFCHW