From: Nathan Sidwell Date: Fri, 11 Sep 2020 21:13:52 +0000 (-0700) Subject: i386: Fix array index in expander X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9d377c280c96df8234eab81d5e2253ee36aa3826;p=gcc.git i386: Fix array index in expander I noticed a compiler warning about out-of-bound access. Fixed thusly. gcc/ * config/i386/sse.md (mov): Fix operand indices. --- diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md index a728b979f01..a784346a23b 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -23491,7 +23491,7 @@ (match_operand:MASK_DWI 1 "nonimmediate_operand"))] "TARGET_AVX512VP2INTERSECT" { - if (MEM_P (operands[1]) && MEM_P (operands[2])) + if (MEM_P (operands[0]) && MEM_P (operands[1])) operands[1] = force_reg (mode, operands[1]); })