From: Jan Beulich Date: Wed, 5 Jul 2023 07:48:19 +0000 (+0200) Subject: x86: allow memory operand for AVX2 splitter for PR target/100711 X-Git-Tag: basepoints/gcc-15~7827 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3186ef0cb9e2d25e8455f9990e50187e3d1eee19;p=thirdparty%2Fgcc.git x86: allow memory operand for AVX2 splitter for PR target/100711 The intended broadcast (with AVX512) can very well be done right from memory. gcc/ PR target/100711 * config/i386/sse.md: Permit non-immediate operand 1 in AVX2 form of splitter for PR target/100711. --- diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index 2e6994e9eb65..ab9fd675d7e3 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -17356,7 +17356,7 @@ (and:VI_AVX2 (vec_duplicate:VI_AVX2 (not: - (match_operand: 1 "register_operand"))) + (match_operand: 1 "nonimmediate_operand"))) (match_operand:VI_AVX2 2 "vector_operand")))] "TARGET_AVX2" [(set (match_dup 3)