[Darwin, PPC, Mode Iterators 4/n] Update macho_high.
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 28 Sep 2019 19:32:31 +0000 (19:32 +0000)
committerIain Sandoe <iains@gcc.gnu.org>
Sat, 28 Sep 2019 19:32:31 +0000 (19:32 +0000)
commit23cb6f8e0c0b462c13fbc01d5d6777d6b49bfaa7
tree06f769200357c1179cb4e34c6e04e0a1430012ad
parent60674b3f8aca8f2b41580ce06b44117a9e6ab52e
[Darwin, PPC, Mode Iterators 4/n] Update macho_high.

Drop the expander and use a mode iterator on the define_insn
for @macho_high_<mode> instead.

gcc/ChangeLog:

2019-09-28  Iain Sandoe  <iain@sandoe.co.uk>

* config/darwin.c (gen_macho_high): Amend to include the mode
argument.
(machopic_indirect_data_reference): Amend gen_macho_high call
to include mode argument.
(machopic_legitimize_pic_address): Likewise.
* config/rs6000/rs6000.c (rs6000_legitimize_address):
* config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
the macho_high expander and two define_insn entries.

From-SVN: r276256
gcc/ChangeLog
gcc/config/darwin.c
gcc/config/rs6000/darwin.md
gcc/config/rs6000/rs6000.c