gas/
commit2a3a75593f5b7e30b7870819ab979a69aa148b6b
authorJan Beulich <jbeulich@novell.com>
Fri, 24 Jul 2009 15:41:20 +0000 (24 15:41 +0000)
committerJan Beulich <jbeulich@novell.com>
Fri, 24 Jul 2009 15:41:20 +0000 (24 15:41 +0000)
tree53a620aa0e6e20adf92729c4c96195e144d170c9
parent7875036af104c0cb9b3a3ba5912e25ccaa428210
gas/
2009-07-24  Jan Beulich  <jbeulich@novell.com>

* tc-i386.c (cpu_arch): Add .8087, .287, .387, .no87, .nommx,
.nosse, and .noavx.
(cpu_flags_and_not): New.
(set_cpu_arch): Check whether sub-architecture specified is a
feature disable.
(md_parse_option): Likewise.
(parse_real_register): Don't return floating point register
when x87 functionality is disabled.
(md_show_usage): Add new sub-options.
* doc/c-i386.texi: Update with new command line sub-options.

gas/testsuite/
2009-07-24  Jan Beulich  <jbeulich@novell.com>

* gas/i386/8087.[ds]: New.
* gas/i386/287.[ds]: New.
* gas/i386/387.[ds]: New.
* gas/i386/no87.[ls]: New.
* gas/i386/no87-2.[ls]: New.
* gas/i386/i386.exp: Run new tests.
* gas/i386/att-regs.s: Also check FPU register access.
* gas/i386/intel-regs.s: Likewise.
* gas/i386/att-regs.d: Adjust expectations.
* gas/i386/intel-regs.d: Likewise.

opcodes/
2009-07-24  Jan Beulich  <jbeulich@novell.com>

* i386-dis.c (fgrps): Correct annotation for feni/fdisi. Add
frstpm.
* i386-gen.c (cpu_flag_init): Add FP enabling flags where needed.
(cpu_flags): Add Cpu8087, Cpu287, Cpu387, Cpu687, and CpuFISTTP.
(set_bitfield): Expand CpuFP to Cpu8087|Cpu287|Cpu387.
* i386-opc.h (Cpu8087, Cpu287, Cpu387, Cpu687, CpuFISTTP):
Define.
(union i386_cpu_flags): Add cpu8087, cpu287, cpu387, cpu687,
and cpufisttp.
* i386-opc.tbl: Qualify floating point instructions by their
respective CpuXXX flag. Fix fucom{,p,pp}, fprem1, fsin, fcos,
and fsincos to be avilable only on 387. Fix fstsw ax to be
available only on 287+. Add f{,n}eni, f{,n}disi, f{,n}setpm,
and frstpm.
* i386-init.h, i386-tbl.h: Regenerate.
26 files changed:
gas/ChangeLog
gas/config/tc-i386.c
gas/doc/c-i386.texi
gas/testsuite/ChangeLog
gas/testsuite/gas/i386/287.d [new file with mode: 0644]
gas/testsuite/gas/i386/287.s [new file with mode: 0644]
gas/testsuite/gas/i386/387.d [new file with mode: 0644]
gas/testsuite/gas/i386/387.s [new file with mode: 0644]
gas/testsuite/gas/i386/8087.d [new file with mode: 0644]
gas/testsuite/gas/i386/8087.s [new file with mode: 0644]
gas/testsuite/gas/i386/att-regs.d
gas/testsuite/gas/i386/att-regs.s
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/intel-regs.d
gas/testsuite/gas/i386/intel-regs.s
gas/testsuite/gas/i386/no87-2.l [new file with mode: 0644]
gas/testsuite/gas/i386/no87-2.s [new file with mode: 0644]
gas/testsuite/gas/i386/no87.l [new file with mode: 0644]
gas/testsuite/gas/i386/no87.s [new file with mode: 0644]
opcodes/ChangeLog
opcodes/i386-dis.c
opcodes/i386-gen.c
opcodes/i386-init.h
opcodes/i386-opc.h
opcodes/i386-opc.tbl
opcodes/i386-tbl.h