Enable cltd for modern CPUs

From-SVN: r194038
This commit is contained in:
Xinliang David Li 2012-12-01 23:43:51 +00:00 committed by Xinliang David Li
parent 780f08bc4a
commit d1b1402fc3
3 changed files with 7 additions and 2 deletions

View File

@ -1822,7 +1822,7 @@ static unsigned int initial_ix86_tune_features[X86_TUNE_LAST] = {
m_K6,
/* X86_TUNE_USE_CLTD */
~(m_PENT | m_CORE2I7 | m_ATOM | m_K6 | m_GENERIC),
~(m_PENT | m_ATOM | m_K6),
/* X86_TUNE_USE_XCHGB: Use xchgb %rh,%rl instead of rolw/rorw $8,rx. */
m_PENT4,

View File

@ -1,3 +1,8 @@
2012-12-01 Xinliang David Li <davidxl@google.com>
* gcc.target/i386/ifcvt-onecmpl-abs-1.c: Check for
cltd.
2012-12-01 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/55558

View File

@ -2,7 +2,7 @@
/* This test checks for if-conversion of one's complement
* abs function. */
/* { dg-options "-O -mtune=generic" } */
/* { dg-final { scan-assembler "sar" } } */
/* { dg-final { scan-assembler "cltd" } } */
/* { dg-final { scan-assembler "xor" } } */
/* Check code generation for one's complement version of abs */