Commit 4c1da8ea by Jakub Jelinek Committed by Jakub Jelinek

re PR middle-end/85195 (ICE: verify_gimple failed: non-trivial conversion at…

re PR middle-end/85195 (ICE: verify_gimple failed: non-trivial conversion at assignment with -O -fno-tree-ccp --param=sccvn-max-scc-size=10)

	PR middle-end/85195
	* match.pd (BIT_FIELD_REF CONSTRUCTOR@0 @1 @2): Use view_convert around
	CONSTRUCTOR_ELT (ctor, ...)->value.

	* gcc.dg/pr85195.c: New test.

From-SVN: r259149
parent 520a02b6
2018-04-05 Jakub Jelinek <jakub@redhat.com>
PR middle-end/85195
* match.pd (BIT_FIELD_REF CONSTRUCTOR@0 @1 @2): Use view_convert around
CONSTRUCTOR_ELT (ctor, ...)->value.
2018-04-05 Uros Bizjak <ubizjak@gmail.com> 2018-04-05 Uros Bizjak <ubizjak@gmail.com>
PR target/85193 PR target/85193
......
...@@ -4650,7 +4650,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) ...@@ -4650,7 +4650,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
{ build_constructor (type, NULL); } { build_constructor (type, NULL); }
(if (count == 1) (if (count == 1)
(if (elt < CONSTRUCTOR_NELTS (ctor)) (if (elt < CONSTRUCTOR_NELTS (ctor))
{ CONSTRUCTOR_ELT (ctor, elt)->value; } (view_convert { CONSTRUCTOR_ELT (ctor, elt)->value; })
{ build_zero_cst (type); }) { build_zero_cst (type); })
{ {
vec<constructor_elt, va_gc> *vals; vec<constructor_elt, va_gc> *vals;
...@@ -4668,7 +4668,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT) ...@@ -4668,7 +4668,7 @@ DEFINE_INT_AND_FLOAT_ROUND_FN (RINT)
(if (CONSTRUCTOR_NELTS (ctor) <= idx / const_k) (if (CONSTRUCTOR_NELTS (ctor) <= idx / const_k)
{ build_zero_cst (type); }) { build_zero_cst (type); })
(if (n == const_k) (if (n == const_k)
{ CONSTRUCTOR_ELT (ctor, idx / const_k)->value; }) (view_convert { CONSTRUCTOR_ELT (ctor, idx / const_k)->value; }))
(BIT_FIELD_REF { CONSTRUCTOR_ELT (ctor, idx / const_k)->value; } (BIT_FIELD_REF { CONSTRUCTOR_ELT (ctor, idx / const_k)->value; }
@1 { bitsize_int ((idx % const_k) * width); }))))))))) @1 { bitsize_int ((idx % const_k) * width); })))))))))
......
2018-04-05 Jakub Jelinek <jakub@redhat.com>
PR middle-end/85195
* gcc.dg/pr85195.c: New test.
2018-04-05 Paolo Carlini <paolo.carlini@oracle.com> 2018-04-05 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/80956 PR c++/80956
......
/* PR middle-end/85195 */
/* { dg-do compile { target int128 } } */
/* { dg-options "-Wno-psabi -O -fno-tree-ccp --param=sccvn-max-scc-size=10" } */
typedef __int128 V __attribute__ ((vector_size (16)));
extern int bar (V);
V v;
int i;
V
foo (void)
{
do
v *= bar (v & i);
while ((V){}[0]);
return v;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment