From: Nathan Sidwell Date: Fri, 11 Sep 2020 21:13:52 +0000 (-0700) Subject: i386: Fix array index in expander X-Git-Tag: releases/gcc-10.3.0~906 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7ad48f0a6b498e4fb89d0ab1208d8e74fe747101;p=thirdparty%2Fgcc.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 b8c2ca7ec04f..eb6a906c8b2c 100644 --- a/gcc/config/i386/sse.md +++ b/gcc/config/i386/sse.md @@ -22985,7 +22985,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]); })