aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2018-01-04 12:44:07 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2018-01-04 12:44:07 +0100
commitc54af0682ce0881ecde74a3b7502287a53ced378 (patch)
tree79abdf94803f0325c6055284f275f42dcd9f7c02 /gcc/testsuite/gcc.dg
parent32489ab56a9ec26aa2342c50bc6d40c95d353777 (diff)
downloadgcc-c54af0682ce0881ecde74a3b7502287a53ced378.zip
gcc-c54af0682ce0881ecde74a3b7502287a53ced378.tar.gz
gcc-c54af0682ce0881ecde74a3b7502287a53ced378.tar.bz2
re PR debug/83666 (ICE: SIGFPE with -O2 -g --param=sccvn-max-scc-size=10)
PR debug/83666 * cfgexpand.c (expand_dbeug_expr) <case BIT_FIELD_REF>: Punt if mode is BLKmode and bitpos not zero or mode change is needed. * gcc.dg/pr83666.c: New test. From-SVN: r256232
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r--gcc/testsuite/gcc.dg/pr83666.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/pr83666.c b/gcc/testsuite/gcc.dg/pr83666.c
new file mode 100644
index 0000000..f12f13d
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/pr83666.c
@@ -0,0 +1,28 @@
+/* PR debug/83666 */
+/* { dg-do compile } */
+/* { dg-options "-O2 -g --param=sccvn-max-scc-size=10 -Wno-psabi" } */
+
+typedef int __attribute__ ((vector_size (64))) V;
+
+int c, d;
+short e;
+V g;
+
+V
+bar (void)
+{
+ g[1] = d;
+ do
+ {
+ e += c;
+ g = g > 0;
+ }
+ while (g[1]);
+ return g;
+}
+
+void
+foo (void)
+{
+ int x = bar ()[3];
+}