]> git.ipfire.org Git - thirdparty/gcc.git/commit
i386: Sync move_max/store_max with prefer-vector-width [PR112824]
authorHongyu Wang <hongyu.wang@intel.com>
Mon, 11 Dec 2023 01:15:02 +0000 (09:15 +0800)
committerHongyu Wang <hongyu.wang@intel.com>
Fri, 15 Dec 2023 02:32:51 +0000 (10:32 +0800)
commita52940cfee0908aed0d2a674a451f6d99844444d
treed5651ef8da85d648758b10e114435376c5b3cd8b
parent9b4f535e45764163e78c9004b1b37dbe5168a1e6
i386: Sync move_max/store_max with prefer-vector-width [PR112824]

Currently move_max follows the tuning feature first, but ideally it
should sync with prefer-vector-width when it is explicitly set to keep
vector move and operation with same vector size.

gcc/ChangeLog:

PR target/112824
* config/i386/i386-options.cc (ix86_option_override_internal):
Sync ix86_move_max/ix86_store_max with prefer_vector_width when
it is explicitly set.

gcc/testsuite/ChangeLog:

PR target/112824
* gcc.target/i386/pieces-memset-45.c: Remove
-mprefer-vector-width=256.
* g++.target/i386/pr112824-1.C: New test.
gcc/config/i386/i386-options.cc
gcc/testsuite/g++.target/i386/pr112824-1.C [new file with mode: 0644]
gcc/testsuite/gcc.target/i386/pieces-memset-45.c