Increase rtx cost of sse_to_integer in skylake_cost.
authorliuhongt <hongtao.liu@intel.com>
Wed, 16 Sep 2020 02:53:52 +0000 (10:53 +0800)
committerliuhongt <hongtao.liu@intel.com>
Sat, 19 Sep 2020 14:54:02 +0000 (22:54 +0800)
commit83858ba1db31cd83667592a41d71315090459da4
treef4b28811d485217ade77c18334af09b1f51bd819
parent239601c53b03880832193f34c799d20fd2c5fe70
Increase rtx cost of sse_to_integer in skylake_cost.

As https://gcc.gnu.org/pipermail/gcc-patches/2019-August/528839.html
indicates, movement between SSE and gpr should be much expensive than
movement inside gpr(which is 2 as default).

gcc/ChangeLog

PR target/96861
* config/i386/x86-tune-costs.h (skylake_cost): increase rtx
cost of sse_to_integer from 2 to 6.

gcc/testsuite

* gcc.target/i386/pr95021-3.c: Add -mtune=generic.
gcc/config/i386/x86-tune-costs.h
gcc/testsuite/gcc.target/i386/pr95021-3.c