rs6000: Implement insn_cost for mfcr, mfcrf
authorSegher Boessenkool <segher@kernel.crashing.org>
Mon, 6 Nov 2017 09:04:23 +0000 (10:04 +0100)
committerSegher Boessenkool <segher@gcc.gnu.org>
Mon, 6 Nov 2017 09:04:23 +0000 (10:04 +0100)
commitc3e150d23a9b499387397c67c02e3976a37405e6
treea7d37e1dedda39380c42f22f034e0ead45a858ab
parent23dbc16908cdb8335f3a9235b18bb33aa9f74dea
rs6000: Implement insn_cost for mfcr, mfcrf

This gives mfcrf a cost of three integer insns, just like we do for sync
and load-with-reservation already.

* config/rs6000/rs6000.c (rs6000_insn_cost): Handle TYPE_MFCR and
TYPE_MFCRF.

From-SVN: r254439
gcc/ChangeLog
gcc/config/rs6000/rs6000.c