+2018-03-17 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/84902
+ * config/i386/i386.c (initial_ix86_tune_features,
+ initial_ix86_arch_features): Use unsigned HOST_WIDE_INT rather than
+ unsigned long long.
+ (set_ix86_tune_features): Change ix86_tune_mask from unsigned int
+ to unsigned HOST_WIDE_INT, initialize to HOST_WIDE_INT_1U << ix86_tune
+ rather than 1u << ix86_tune. Formatting fix.
+ (ix86_option_override_internal): Change ix86_arch_mask from
+ unsigned int to unsigned HOST_WIDE_INT, initialize to
+ HOST_WIDE_INT_1U << ix86_arch rather than 1u << ix86_arch.
+ (ix86_function_specific_restore): Likewise.
+
2018-03-16 Jakub Jelinek <jakub@redhat.com>
PR target/84899
/* Feature tests against the various tunings used to create ix86_tune_features
based on the processor mask. */
-static unsigned long long initial_ix86_tune_features[X86_TUNE_LAST] = {
+static unsigned HOST_WIDE_INT initial_ix86_tune_features[X86_TUNE_LAST] = {
#undef DEF_TUNE
#define DEF_TUNE(tune, name, selector) selector,
#include "x86-tune.def"
/* Feature tests against the various architecture variations, used to create
ix86_arch_features based on the processor mask. */
-static unsigned long long initial_ix86_arch_features[X86_ARCH_LAST] = {
+static unsigned HOST_WIDE_INT initial_ix86_arch_features[X86_ARCH_LAST] = {
/* X86_ARCH_CMOV: Conditional move was added for pentiumpro. */
~(m_386 | m_486 | m_PENT | m_LAKEMONT | m_K6),
static void
set_ix86_tune_features (enum processor_type ix86_tune, bool dump)
{
- unsigned int ix86_tune_mask = 1u << ix86_tune;
+ unsigned HOST_WIDE_INT ix86_tune_mask = HOST_WIDE_INT_1U << ix86_tune;
int i;
for (i = 0; i < X86_TUNE_LAST; ++i)
if (ix86_tune_no_default)
ix86_tune_features[i] = 0;
else
- ix86_tune_features[i] = !!(initial_ix86_tune_features[i] & ix86_tune_mask);
+ ix86_tune_features[i]
+ = !!(initial_ix86_tune_features[i] & ix86_tune_mask);
}
if (dump)
struct gcc_options *opts_set)
{
int i;
- unsigned int ix86_arch_mask;
+ unsigned HOST_WIDE_INT ix86_arch_mask;
const bool ix86_tune_specified = (opts->x_ix86_tune_string != NULL);
const wide_int_bitmask PTA_3DNOW (HOST_WIDE_INT_1U << 0);
XDELETEVEC (s);
}
- ix86_arch_mask = 1u << ix86_arch;
+ ix86_arch_mask = HOST_WIDE_INT_1U << ix86_arch;
for (i = 0; i < X86_ARCH_LAST; ++i)
ix86_arch_features[i] = !!(initial_ix86_arch_features[i] & ix86_arch_mask);
{
enum processor_type old_tune = ix86_tune;
enum processor_type old_arch = ix86_arch;
- unsigned int ix86_arch_mask;
+ unsigned HOST_WIDE_INT ix86_arch_mask;
int i;
/* We don't change -fPIC. */
/* Recreate the arch feature tests if the arch changed */
if (old_arch != ix86_arch)
{
- ix86_arch_mask = 1u << ix86_arch;
+ ix86_arch_mask = HOST_WIDE_INT_1U << ix86_arch;
for (i = 0; i < X86_ARCH_LAST; ++i)
ix86_arch_features[i]
= !!(initial_ix86_arch_features[i] & ix86_arch_mask);