summaryrefslogtreecommitdiffstats
path: root/gcc/testsuite/g++.target/i386/pr105953.C
diff options
context:
space:
mode:
authorliuhongt <hongtao.liu@intel.com>2022-06-14 16:27:04 +0800
committerliuhongt <hongtao.liu@intel.com>2022-06-15 13:56:52 +0800
commitbac09a893145056217b1e9a0054466a770815c43 (patch)
tree5b472384aff33e0bd5e8a575bac4f7112f9d4925 /gcc/testsuite/g++.target/i386/pr105953.C
parentDaily bump. (diff)
downloadgcc-bac09a893145056217b1e9a0054466a770815c43.tar.gz
gcc-bac09a893145056217b1e9a0054466a770815c43.tar.bz2
gcc-bac09a893145056217b1e9a0054466a770815c43.tar.xz
Fix ICE in extract_insn, at recog.cc:2791
(In reply to UroŇ° Bizjak from comment #1) > Instruction does not accept memory operand for operand 3: > > (define_insn_and_split > "*<sse4_1>_blendv<ssefltmodesuffix><avxsizesuffix>_ltint" > [(set (match_operand:<ssebytemode> 0 "register_operand" "=Yr,*x,x") > (unspec:<ssebytemode> > [(match_operand:<ssebytemode> 1 "register_operand" "0,0,x") > (match_operand:<ssebytemode> 2 "vector_operand" "YrBm,*xBm,xm") > (subreg:<ssebytemode> > (lt:VI48_AVX > (match_operand:VI48_AVX 3 "register_operand" "Yz,Yz,x") > (match_operand:VI48_AVX 4 "const0_operand")) 0)] > UNSPEC_BLENDV))] > > The problematic insn is: > > (define_insn_and_split "*avx_cmp<mode>3_ltint_not" > [(set (match_operand:VI48_AVX 0 "register_operand") > (vec_merge:VI48_AVX > (match_operand:VI48_AVX 1 "vector_operand") > (match_operand:VI48_AVX 2 "vector_operand") > (unspec:<avx512fmaskmode> > [(subreg:VI48_AVX > (not:<ssebytemode> > (match_operand:<ssebytemode> 3 "vector_operand")) 0) > (match_operand:VI48_AVX 4 "const0_operand") > (match_operand:SI 5 "const_0_to_7_operand")] > UNSPEC_PCMP)))] > > which gets split to the above pattern. > > In the preparation statements we have: > > if (!MEM_P (operands[3])) > operands[3] = force_reg (<ssebytemode>mode, operands[3]); > operands[3] = lowpart_subreg (<MODE>mode, operands[3], <ssebytemode>mode); > > Which won't fly when operand 3 is memory operand... > gcc/ChangeLog: PR target/105953 * config/i386/sse.md (*avx_cmp<mode>3_ltint_not): Force_reg operands[3]. gcc/testsuite/ChangeLog: * g++.target/i386/pr105953.C: New test.
Diffstat (limited to 'gcc/testsuite/g++.target/i386/pr105953.C')
-rw-r--r--gcc/testsuite/g++.target/i386/pr105953.C4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/testsuite/g++.target/i386/pr105953.C b/gcc/testsuite/g++.target/i386/pr105953.C
new file mode 100644
index 00000000000..b423d2dfdae
--- /dev/null
+++ b/gcc/testsuite/g++.target/i386/pr105953.C
@@ -0,0 +1,4 @@
1/* { dg-do compile } */
2/* { dg-options "-O2 -mavx512vl -mabi=ms" } */
3
4#include "pr100738-1.C"