From 9d377c280c96df8234eab81d5e2253ee36aa3826 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Fri, 11 Sep 2020 14:13:52 -0700 Subject: [PATCH] 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. --- 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 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]); }) -- 2.30.2