]> git.ipfire.org Git - thirdparty/gcc.git/commit
Adjust rtx_cost for DF/SFmode AND/IOR/XOR/ANDN operations.
authorliuhongt <hongtao.liu@intel.com>
Tue, 4 Jul 2023 05:59:17 +0000 (13:59 +0800)
committerliuhongt <hongtao.liu@intel.com>
Thu, 6 Jul 2023 06:21:59 +0000 (14:21 +0800)
commite1c23189abdd7bbbc066b2aa47ae4b7db0d69f2b
tree9f3d3a34a7b282127de93aa3f4916f5204ea1d2e
parenta73b65b74105e76473cc2825bb4e7253deaf18b3
Adjust rtx_cost for DF/SFmode AND/IOR/XOR/ANDN operations.

They should have same cost as vector mode since both generate
pand/pandn/pxor/por instruction.

gcc/ChangeLog:

* config/i386/i386.cc (ix86_rtx_costs): Adjust rtx_cost for
DF/SFmode AND/IOR/XOR/ANDN operations.

gcc/testsuite/ChangeLog:

* gcc.target/i386/pr110170-2.c: New test.
gcc/config/i386/i386.cc
gcc/testsuite/gcc.target/i386/pr110170-2.c [new file with mode: 0644]