x86: make code size vs CPU arch checking consistent
authorJan Beulich <jbeulich@suse.com>
Fri, 15 Sep 2023 07:56:02 +0000 (09:56 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 15 Sep 2023 07:56:02 +0000 (09:56 +0200)
commit1d07cfb4406ee1dd336dd63cd5af7e8534892be7
tree6e89d08039e463d353c9b94403b8d87e5631ab52
parentb44fef84a9696d3e571f79aea3e0adea0b4ae02d
x86: make code size vs CPU arch checking consistent

While update_code_flag() checks for LM / i386, set_cpu_arch() so far
didn't, allowing e.g. 64-bit code to be emitted after ".arch generic32".

Oddly enough a few of our testcases actually exhibit bad behavior (and
hence need minor adjustments).
gas/config/tc-i386.c
gas/testsuite/gas/i386/287.s
gas/testsuite/gas/i386/8087.s
gas/testsuite/gas/i386/att-regs.s
gas/testsuite/gas/i386/intel-regs.s
gas/testsuite/gas/i386/inval-16.l
gas/testsuite/gas/i386/inval-16.s
gas/testsuite/gas/i386/nops-5.s