aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-09-11 14:13:52 -0700
committerNathan Sidwell <nathan@acm.org>2020-09-11 14:19:04 -0700
commit9d377c280c96df8234eab81d5e2253ee36aa3826 (patch)
tree4218dac02be46a3790b93db4ab6f15f6a9186a96 /gcc
parent64064678d6cb48fdc7e039fde15d471960d496d3 (diff)
downloadgcc-9d377c280c96df8234eab81d5e2253ee36aa3826.zip
gcc-9d377c280c96df8234eab81d5e2253ee36aa3826.tar.gz
gcc-9d377c280c96df8234eab81d5e2253ee36aa3826.tar.bz2
i386: Fix array index in expander
I noticed a compiler warning about out-of-bound access. Fixed thusly. gcc/ * config/i386/sse.md (mov<mode>): Fix operand indices.
Diffstat (limited to 'gcc')
-rw-r--r--gcc/config/i386/sse.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/i386/sse.md b/gcc/config/i386/sse.md
index a728b97..a784346 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>mode, operands[1]);
})