[PATCH, i386] Handle extended family cpuid info for AMD

Uros Bizjak ubizjak@gmail.com
Thu Jul 31 11:54:00 GMT 2014


On Thu, Jul 31, 2014 at 1:46 PM, Gopalasubramanian, Ganesh
<Ganesh.Gopalasubramanian@amd.com> wrote:
>> But, looking to processor_alias_table in config/i386/i386.c, only
>> PROCESSOR_BTVER2 defines PTA_MOVBE. According to this, the logic is already correct, so the patch is not needed.
>
> We are evaluating bdver4 cpu. Bdver4 also supports MOVBE. I will submit patch for bdver4 PTA after our evaluation.

Then just use:

--cut here--
Index: driver-i386.c
===================================================================
--- driver-i386.c       (revision 213342)
+++ driver-i386.c       (working copy)
@@ -576,10 +576,10 @@ const char *host_detect_local_cpu (int argc, const

       if (name == signature_NSC_ebx)
        processor = PROCESSOR_GEODE;
+      else if (has_avx2)
+        processor = PROCESSOR_BDVER4;
       else if (has_movbe)
        processor = PROCESSOR_BTVER2;
-      else if (has_avx2)
-        processor = PROCESSOR_BDVER4;
       else if (has_xsaveopt)
         processor = PROCESSOR_BDVER3;
       else if (has_bmi)
--cut here--

Uros.



More information about the Gcc-patches mailing list