Message ID | EB4625145972F94C9680D8CADD651615787D77E6@SATLEXDAG02.amd.com |
---|---|
State | New |
Headers | show |
On Mon, Aug 4, 2014 at 12:58 PM, Gopalasubramanian, Ganesh <Ganesh.Gopalasubramanian@amd.com> wrote: > Below patch adds PTA_RDRND and PTA_MOVBE for bdver4. > > Bootstrap passes. > > Ok for upstream? > 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com> > > + * gcc/config/i386/i386.c (ix86_option_override_internal): Add > + PTA_RDRND and PTA_MOVBE for bdver4. OK for mainline. Thanks, Uros.
Uros Bizjak <ubizjak@gmail.com> writes: > On Mon, Aug 4, 2014 at 12:58 PM, Gopalasubramanian, Ganesh > <Ganesh.Gopalasubramanian@amd.com> wrote: >> Below patch adds PTA_RDRND and PTA_MOVBE for bdver4. >> >> Bootstrap passes. >> >> Ok for upstream? > >> 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com> >> >> + * 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
> OK for mainline.
Thanks Uros. Committed to revision 213572
I would like to backport to 4.9 branch too.
Is it OK?
- Ganesh
On Fri, Aug 8, 2014 at 12:14 PM, Gopalasubramanian, Ganesh <Ganesh.Gopalasubramanian@amd.com> 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.
Index: gcc/ChangeLog =================================================================== --- gcc/ChangeLog (revision 213568) +++ gcc/ChangeLog (working copy) @@ -24,6 +24,11 @@ 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com> + * gcc/config/i386/i386.c (ix86_option_override_internal): Add + PTA_RDRND and PTA_MOVBE for bdver4. + +2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com> + * 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