[PATCH] x86: conditionalize x87 instructions and registers
Jan Beulich
JBeulich@novell.com
Fri Jul 24 14:34:00 GMT 2009
More information about the Binutils mailing list
Fri Jul 24 14:34:00 GMT 2009
- Previous message (by thread): [PATCH] x86: conditionalize x87 instructions and registers
- Next message (by thread): [PATCH] x86: conditionalize x87 instructions and registers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>>> "H.J. Lu" <hjl.tools@gmail.com> 24.07.09 15:37 >>> >> + if (r->reg_type.bitfield.floatreg >> + && !cpu_arch_flags.bitfield.cpu8087 >> + && !cpu_arch_flags.bitfield.cpu287 >> + && !cpu_arch_flags.bitfield.cpu387) >> + return (const reg_entry *) NULL; >> + > >I assume FISTTP > 687 > 387 > 287 > 8087. If it is No, specifically not - feni/fdisi are 8087 *only* and fsetpm/frstpm are 287 *only*. Thus only FISTTP > 687 > 387 (explaining why the code above doesn't check for 687 and FISTTP), which is also reflected in how the Cpu* masks are set up in opcodes/i386-gen.c (387 does not include 287, and 287 does not include 8087). >the case, please change it to > > if (r->reg_type.bitfield.floatreg && !cpu_arch_flags.bitfield.cpu8087) > return (const reg_entry *) NULL; > >OK with this change. OK with that explanation, but code unchanged? Jan
- Previous message (by thread): [PATCH] x86: conditionalize x87 instructions and registers
- Next message (by thread): [PATCH] x86: conditionalize x87 instructions and registers
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the Binutils mailing list