rs6000: Improve .machine
authorSegher Boessenkool <segher@kernel.crashing.org>
Tue, 1 Mar 2022 17:04:29 +0000 (17:04 +0000)
committerSegher Boessenkool <segher@kernel.crashing.org>
Fri, 4 Mar 2022 23:51:59 +0000 (23:51 +0000)
commit77eccbf39ed55297802bb66dff5f62507a7239e3
treee04cda6b6364ea252ee9630083abaf10b94445ac
parent0e5d9ae8e41e7690c0c728ff877a2f1bc2ab6973
rs6000: Improve .machine

This adds more correct .machine for most older CPUs.  It should be
conservative in the sense that everything we handled before we handle at
least as well now.  This does not yet revamp the server CPU handling, it
is too risky at this point in time.

Tested on powerpc64-linux {-m32,-m64}.  Also manually tested with all
-mcpu=, and the output of that passed through the GNU assembler.

2022-03-04  Segher Boessenkool  <segher@kernel.crashing.org>

* config/rs6000/rs6000.cc (rs6000_machine_from_flags): Restructure a
bit.  Handle most older CPUs.
gcc/config/rs6000/rs6000.cc