diff options
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 7 | ||||
-rw-r--r-- | opcodes/i386-gen.c | 11 | ||||
-rw-r--r-- | opcodes/i386-opc.h | 2 | ||||
-rw-r--r-- | opcodes/i386-tbl.h | 4 |
4 files changed, 20 insertions, 4 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index 82e3143..eacd10b 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -1,3 +1,10 @@ +2016-05-27 H.J. Lu <hongjiu.lu@intel.com> + + PR gas/20154 + * i386-gen.c (main): Fail if CpuMax is incorrect. + * i386-opc.h (CpuMax): Set to CpuIntel64. + * i386-tbl.h: Regenerated. + 2016-05-27 Nick Clifton <nickc@redhat.com> PR target/20150 diff --git a/opcodes/i386-gen.c b/opcodes/i386-gen.c index b19bbe1..0afdc90 100644 --- a/opcodes/i386-gen.c +++ b/opcodes/i386-gen.c @@ -1379,7 +1379,16 @@ main (int argc, char **argv) srcdir, xstrerror (errno)); /* Check the unused bitfield in i386_cpu_flags. */ -#ifndef CpuUnused +#ifdef CpuUnused + if (cpu_flags[ARRAY_SIZE (cpu_flags) - 2].position != CpuMax) + fail (_("CpuMax != %d!\n"), + cpu_flags[ARRAY_SIZE (cpu_flags) - 2].position); + +#else + if (cpu_flags[ARRAY_SIZE (cpu_flags) - 1].position != CpuMax) + fail (_("CpuMax != %d!\n"), + cpu_flags[ARRAY_SIZE (cpu_flags) - 1].position); + c = CpuNumOfBits - CpuMax - 1; if (c) fail (_("%d unused bits in i386_cpu_flags.\n"), c); diff --git a/opcodes/i386-opc.h b/opcodes/i386-opc.h index a93c1f3..0782b1a 100644 --- a/opcodes/i386-opc.h +++ b/opcodes/i386-opc.h @@ -211,7 +211,7 @@ enum /* Intel64 support required */ CpuIntel64, /* The last bitfield in i386_cpu_flags. */ - CpuMax = CpuNo64 + CpuMax = CpuIntel64 }; #define CpuNumOfUints \ diff --git a/opcodes/i386-tbl.h b/opcodes/i386-tbl.h index 70e10fb..5c5a991 100644 --- a/opcodes/i386-tbl.h +++ b/opcodes/i386-tbl.h @@ -3200,7 +3200,7 @@ const insn_template i386_optab[] = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 1, 0, 0, 0, 1 } }, + 0, 0, 0, 0, 0, 1, 0, 0, 1, 0 } }, { 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -3323,7 +3323,7 @@ const insn_template i386_optab[] = 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, - 0, 0, 0, 0, 0, 1, 0, 0, 0, 1 } }, + 0, 0, 0, 0, 0, 1, 0, 0, 1, 0 } }, { 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, |