aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2019-11-21 15:01:17 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2019-11-21 15:01:17 +0000
commit7c327e2d4d04966c8c5dc19cee9e242befdff6ef (patch)
tree39523bb6cd44de20b212da8a56a36bb20f29a345 /gcc/testsuite/gcc.dg
parent9c572192f0019c3dec3ef8c00c00c809e355820f (diff)
downloadgcc-7c327e2d4d04966c8c5dc19cee9e242befdff6ef.zip
gcc-7c327e2d4d04966c8c5dc19cee9e242befdff6ef.tar.gz
gcc-7c327e2d4d04966c8c5dc19cee9e242befdff6ef.tar.bz2
re PR tree-optimization/92596 (ICE in exact_div, at poly-int.h:2162 since r278406)
2019-11-21 Richard Biener <rguenther@suse.de> PR tree-optimization/92596 * tree-vect-slp.c (vect_build_slp_tree): Fix pasto. * gcc.dg/torture/pr92596-1.c: New testcase. From-SVN: r278555
Diffstat (limited to 'gcc/testsuite/gcc.dg')
-rw-r--r--gcc/testsuite/gcc.dg/torture/pr92596-1.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/torture/pr92596-1.c b/gcc/testsuite/gcc.dg/torture/pr92596-1.c
new file mode 100644
index 0000000..9d2a223
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/torture/pr92596-1.c
@@ -0,0 +1,20 @@
+/* { dg-do compile } */
+/* { dg-additional-options "-ftree-slp-vectorize" } */
+
+typedef struct {
+ long n[5];
+} secp256k1_fe;
+
+void *a, *b;
+int c;
+static void
+fn1(secp256k1_fe *p1, int p2)
+{
+ p1->n[2] = p1->n[3] = p1->n[4] = p2;
+}
+void
+fn2()
+{
+ fn1(b, !c);
+ fn1(a, !c);
+}