summaryrefslogtreecommitdiff
path: root/gcc/config/i386
diff options
context:
space:
mode:
authorNathan Sidwell <nathan@acm.org>2020-09-11 14:13:52 -0700
committerNathan Sidwell <nathan@acm.org>2020-09-14 05:14:14 -0700
commit7ad48f0a6b498e4fb89d0ab1208d8e74fe747101 (patch)
tree4575ac5c3467fa07a5b5a45e15c21a85569d555f /gcc/config/i386
parent1bcbc4da6aea0c82b764c369ab74e2964c280774 (diff)
downloadgcc-7ad48f0a6b498e4fb89d0ab1208d8e74fe747101.tar.gz
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/config/i386')
-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 b8c2ca7ec04..eb6a906c8b2 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>mode, operands[1]);
})