x86: Also use Yw in *ssse3_pshufbv8qi3 clobber
Commit Message
PR target/105068
* config/i386/sse.md (*ssse3_pshufbv8qi3): Also replace "Yv" with
"Yw" in clobber.
---
gcc/config/i386/sse.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Comments
On Mon, Mar 28, 2022 at 9:37 AM H.J. Lu <hjl.tools@gmail.com> wrote:
>
> PR target/105068
> * config/i386/sse.md (*ssse3_pshufbv8qi3): Also replace "Yv" with
> "Yw" in clobber.
> ---
> gcc/config/i386/sse.md | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md
> index 01543afd111..1f9c496e7c0 100644
> --- a/gcc/config/i386/sse.md
> +++ b/gcc/config/i386/sse.md
> @@ -20764,7 +20764,7 @@ (define_insn_and_split "*ssse3_pshufbv8qi3"
> (match_operand:V4SI 4 "reg_or_const_vector_operand"
> "i,3,3")]
> UNSPEC_PSHUFB))
> - (clobber (match_scratch:V4SI 3 "=X,&x,&Yv"))]
> + (clobber (match_scratch:V4SI 3 "=X,&x,&Yw"))]
> "(TARGET_MMX || TARGET_MMX_WITH_SSE) && TARGET_SSSE3"
> "@
> pshufb\t{%2, %0|%0, %2}
> --
> 2.35.1
>
I am backporting this to release branches.
Thanks.
@@ -20764,7 +20764,7 @@ (define_insn_and_split "*ssse3_pshufbv8qi3"
(match_operand:V4SI 4 "reg_or_const_vector_operand"
"i,3,3")]
UNSPEC_PSHUFB))
- (clobber (match_scratch:V4SI 3 "=X,&x,&Yv"))]
+ (clobber (match_scratch:V4SI 3 "=X,&x,&Yw"))]
"(TARGET_MMX || TARGET_MMX_WITH_SSE) && TARGET_SSSE3"
"@
pshufb\t{%2, %0|%0, %2}