diff mbox series

[3/5] x86: allow memory operand for AVX2 splitter for PR target/100711

Message ID 4080e2a5-7d77-0ff7-8dc6-935ac79da0ce@suse.com
State New
Headers show
Series x86: make better use of VPTERNLOG{D,Q} | expand

Commit Message

Jan Beulich June 21, 2023, 6:27 a.m. UTC
The intended broadcast (with AVX512) can very well be done right from
memory.

gcc/

	* config/i386/sse.md: Permit non-immediate operand 1 in AVX2
	form of splitter for PR target/100711.

Comments

Hongtao Liu June 25, 2023, 4:58 a.m. UTC | #1
On Wed, Jun 21, 2023 at 2:28 PM Jan Beulich via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
> The intended broadcast (with AVX512) can very well be done right from
> memory.
Ok.
>
> gcc/
>
>         * config/i386/sse.md: Permit non-immediate operand 1 in AVX2
>         form of splitter for PR target/100711.
>
> --- a/gcc/config/i386/sse.md
> +++ b/gcc/config/i386/sse.md
> @@ -17356,7 +17356,7 @@
>         (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)
>
diff mbox series

Patch

--- a/gcc/config/i386/sse.md
+++ b/gcc/config/i386/sse.md
@@ -17356,7 +17356,7 @@ 
 	(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)