]> git.ipfire.org Git - thirdparty/gcc.git/commit
x86: correct / simplify @vec_extract_hi_<mode> and vec_extract_hi_v32qi
authorJan Beulich <jbeulich@suse.com>
Fri, 7 Jul 2023 07:44:36 +0000 (09:44 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 7 Jul 2023 07:44:36 +0000 (09:44 +0200)
commitcab6a6b6d3a28032c812f78b5d96aedb597c91f8
tree70cf4a2133d6acbf53445495cb0ce8c4cf3fe9aa
parent8bebf97f849811abeaf45de69cb5b799178b8be7
x86: correct / simplify @vec_extract_hi_<mode> and vec_extract_hi_v32qi

The middle alternative each was unusable without enabling AVX512DQ (in
addition to AVX512VL), which is entirely unrelated here. The last
alternative is usable with AVX512VL only (due to type restrictions on
what may be put in the upper 16 YMM registers), and hence is pointlessly
forcing 512-bit mode (without actually reflecting that in the "mode"
attribute).

gcc/

* config/i386/sse.md (@vec_extract_hi_<mode>): Drop last
alternative. Switch new last alternative's "isa" attribute to
"avx512vl".
(vec_extract_hi_v32qi): Likewise.
gcc/config/i386/sse.md