]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
x86: allow memory operand for AVX2 splitter for PR target/100711
authorJan Beulich <jbeulich@suse.com>
Wed, 5 Jul 2023 07:48:19 +0000 (09:48 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 5 Jul 2023 07:48:19 +0000 (09:48 +0200)
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.

gcc/config/i386/sse.md

index 2e6994e9eb65491ebc427e03d993ec59a1f6f622..ab9fd675d7e3d47148b07f58db71263de99230b7 100644 (file)
        (and:VI_AVX2
          (vec_duplicate:VI_AVX2
            (not:<ssescalarmode>
-             (match_operand:<ssescalarmode> 1 "register_operand")))
+             (match_operand:<ssescalarmode> 1 "nonimmediate_operand")))
          (match_operand:VI_AVX2 2 "vector_operand")))]
   "TARGET_AVX2"
   [(set (match_dup 3)