Enable bt and and movzx for Lakemont
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Oct 2015 13:34:49 +0000 (13:34 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 1 Oct 2015 13:34:49 +0000 (13:34 +0000)
* config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for
Lakemont.
(X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228337 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/i386/x86-tune.def

index 2d86889..70f9646 100644 (file)
@@ -1,3 +1,9 @@
+2015-10-01  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for
+       Lakemont.
+       (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
+
 2015-10-01  James Greenhalgh  <james.greenhalgh@arm.com>
 
        * config/arm/aarch-common-protos.h
index 3b3f149..213c604 100644 (file)
@@ -292,7 +292,7 @@ DEF_TUNE (X86_TUNE_USE_CLTD, "use_cltd",
 /* X86_TUNE_USE_BT: Enable use of BT (bit test) instructions.  */
 DEF_TUNE (X86_TUNE_USE_BT, "use_bt",
           m_CORE_ALL | m_BONNELL | m_SILVERMONT | m_KNL | m_INTEL
-         | m_AMD_MULTIPLE | m_GENERIC)
+         | m_LAKEMONT | m_AMD_MULTIPLE | m_GENERIC)
 
 /*****************************************************************************/
 /* 387 instruction selection tuning                                          */
@@ -448,7 +448,7 @@ DEF_TUNE (X86_TUNE_SHIFT1, "shift1", ~m_486)
 /* X86_TUNE_ZERO_EXTEND_WITH_AND: Use AND instruction instead
    of mozbl/movwl.  */
 DEF_TUNE (X86_TUNE_ZERO_EXTEND_WITH_AND, "zero_extend_with_and",
-         m_486 | m_PENT | m_LAKEMONT)
+         m_486 | m_PENT)
 
 /* X86_TUNE_PROMOTE_HIMODE_IMUL: Modern CPUs have same latency for HImode
    and SImode multiply, but 386 and 486 do HImode multiply faster.  */