rs6000: Improve truncifsf2
authorSegher Boessenkool <segher@kernel.crashing.org>
Mon, 16 Jul 2018 23:02:11 +0000 (01:02 +0200)
committerSegher Boessenkool <segher@gcc.gnu.org>
Mon, 16 Jul 2018 23:02:11 +0000 (01:02 +0200)
commit66408f6c3954fa6d91972bffecfaf49287cbfe55
treefc9fbf1b492ef8c62191b6bdd9734fbf97014a49
parent56a6c9b4b2aa227c2d5bd21f2fb43b561a5b7d96
rs6000: Improve truncifsf2

The current implementation leaves an unnecessary register move.  It is
easier to just expand things in the expander already.  This patch does
that.

* config/rs6000/rs6000.md (trunc<mode>sf2): Expand truncates of
double-double modes to SFmode directly directly.
(trunc<mode>sf2_fprs): Delete.

From-SVN: r262754
gcc/ChangeLog
gcc/config/rs6000/rs6000.md