X86: Allow additional ISAs for IAMCU in assembler
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 7 Sep 2016 16:16:25 +0000 (09:16 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 7 Sep 2016 16:22:19 +0000 (09:22 -0700)
commit5b64d091e9ede49e402cb9697d35a40559ee7ff0
treed7503f7c047d39bf4b67de16e5d297f41f0aadf1
parent27e5a270962fb92c07e7d476966ba380fa3bb68e
X86: Allow additional ISAs for IAMCU in assembler

Originally only Pentium integer instructions are allowed for IAMCU.
This patch removes such a restriction.  For example, 387 and SSE2
instructions can be enabled by passing "-march=iamcu+sse2+387" to
assembler.

gas/

* config/tc-i386.c (valid_iamcu_cpu_flags): Removed.
(set_cpu_arch): Updated.
(md_parse_option): Likewise.
* testsuite/gas/i386/i386.exp: Run iamcu-4 and iamcu-5.  Remove
iamcu-inval-2 and iamcu-inval-3.
* testsuite/gas/i386/iamcu-4.d: New file.
* testsuite/gas/i386/iamcu-4.s: Likewise.
* testsuite/gas/i386/iamcu-5.d: Likewise.
* testsuite/gas/i386/iamcu-5.s: Likewise.
* testsuite/gas/i386/iamcu-inval-2.l: Removed.
* testsuite/gas/i386/iamcu-inval-2.s: Likewise.
* testsuite/gas/i386/iamcu-inval-3.l: Likewise.
* testsuite/gas/i386/iamcu-inval-3.s: Likewise.

opcodes/

* i386-gen.c (cpu_flag_init): Remove CPU_IAMCU_COMPAT_FLAGS.
* i386-init.h: Regenerated.
14 files changed:
gas/ChangeLog
gas/config/tc-i386.c
gas/testsuite/gas/i386/i386.exp
gas/testsuite/gas/i386/iamcu-4.d [new file with mode: 0644]
gas/testsuite/gas/i386/iamcu-4.s [new file with mode: 0644]
gas/testsuite/gas/i386/iamcu-5.d [new file with mode: 0644]
gas/testsuite/gas/i386/iamcu-5.s [new file with mode: 0644]
gas/testsuite/gas/i386/iamcu-inval-2.l [deleted file]
gas/testsuite/gas/i386/iamcu-inval-2.s [deleted file]
gas/testsuite/gas/i386/iamcu-inval-3.l [deleted file]
gas/testsuite/gas/i386/iamcu-inval-3.s [deleted file]
opcodes/ChangeLog
opcodes/i386-gen.c
opcodes/i386-init.h