i386-common.c: Handle LZCNT.
2013-06-22 Sriraman Tallam <tmsriram@google.com> * common/config/i386/i386-common.c: Handle LZCNT. From-SVN: r200347
This commit is contained in:
parent
ca3ef38f6b
commit
495e687951
2 changed files with 18 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2013-06-22 Sriraman Tallam <tmsriram@google.com>
|
||||
|
||||
* common/config/i386/i386-common.c: Handle LZCNT.
|
||||
|
||||
2013-06-22 Andi Kleen <ak@linux.intel.com>
|
||||
|
||||
* doc/extend.texi: Use __atomic_store_n instead of
|
||||
|
|
|
@ -87,6 +87,7 @@ along with GCC; see the file COPYING3. If not see
|
|||
|
||||
#define OPTION_MASK_ISA_BMI_SET OPTION_MASK_ISA_BMI
|
||||
#define OPTION_MASK_ISA_BMI2_SET OPTION_MASK_ISA_BMI2
|
||||
#define OPTION_MASK_ISA_LZCNT_SET OPTION_MASK_ISA_LZCNT
|
||||
#define OPTION_MASK_ISA_TBM_SET OPTION_MASK_ISA_TBM
|
||||
#define OPTION_MASK_ISA_POPCNT_SET OPTION_MASK_ISA_POPCNT
|
||||
#define OPTION_MASK_ISA_CX16_SET OPTION_MASK_ISA_CX16
|
||||
|
@ -154,6 +155,7 @@ along with GCC; see the file COPYING3. If not see
|
|||
#define OPTION_MASK_ISA_ABM_UNSET OPTION_MASK_ISA_ABM
|
||||
#define OPTION_MASK_ISA_BMI_UNSET OPTION_MASK_ISA_BMI
|
||||
#define OPTION_MASK_ISA_BMI2_UNSET OPTION_MASK_ISA_BMI2
|
||||
#define OPTION_MASK_ISA_LZCNT_UNSET OPTION_MASK_ISA_LZCNT
|
||||
#define OPTION_MASK_ISA_TBM_UNSET OPTION_MASK_ISA_TBM
|
||||
#define OPTION_MASK_ISA_POPCNT_UNSET OPTION_MASK_ISA_POPCNT
|
||||
#define OPTION_MASK_ISA_CX16_UNSET OPTION_MASK_ISA_CX16
|
||||
|
@ -438,6 +440,18 @@ ix86_handle_option (struct gcc_options *opts,
|
|||
}
|
||||
return true;
|
||||
|
||||
case OPT_mlzcnt:
|
||||
if (value)
|
||||
{
|
||||
opts->x_ix86_isa_flags |= OPTION_MASK_ISA_LZCNT_SET;
|
||||
opts->x_ix86_isa_flags_explicit |= OPTION_MASK_ISA_LZCNT_SET;
|
||||
}
|
||||
else
|
||||
{
|
||||
opts->x_ix86_isa_flags &= ~OPTION_MASK_ISA_LZCNT_UNSET;
|
||||
opts->x_ix86_isa_flags_explicit |= OPTION_MASK_ISA_LZCNT_UNSET;
|
||||
}
|
||||
|
||||
case OPT_mtbm:
|
||||
if (value)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue