Commit 9847df2c by Richard Biener

testsuite/92177 fix for SLP build changes

We're now consistently building SLP operations with only
scalar defs from scalars which makes the testcase no longer
testing multiplication vectorization.  The following smuggles
in a constant making the vector variant profitable for SLP build.

2020-02-05  Richard Biener  <rguenther@suse.de>

	PR testsuite/92177
	* gcc.dg/vect/bb-slp-22.c: Adjust.
parent 1105cf81
2020-02-05 Richard Biener <rguenther@suse.de> 2020-02-05 Richard Biener <rguenther@suse.de>
PR testsuite/92177
* gcc.dg/vect/bb-slp-22.c: Adjust.
2020-02-05 Richard Biener <rguenther@suse.de>
PR middle-end/90648 PR middle-end/90648
* genmatch.c (dt_node::gen_kids_1): Emit number of argument * gcc.dg/pr90648.c: New testcase.
checks before matching calls.
2020-02-05 Jakub Jelinek <jakub@redhat.com> 2020-02-05 Jakub Jelinek <jakub@redhat.com>
......
...@@ -29,10 +29,10 @@ main1 (unsigned int x, unsigned int y) ...@@ -29,10 +29,10 @@ main1 (unsigned int x, unsigned int y)
} }
else else
{ {
out[0] = a0 * x; out[0] = a0 * (x + 1);
out[1] = a1 * y; out[1] = a1 * (y + 1);
out[2] = a2 * x; out[2] = a2 * (x + 1);
out[3] = a3 * y; out[3] = a3 * (y + 1);
} }
if (x) if (x)
...@@ -40,10 +40,10 @@ main1 (unsigned int x, unsigned int y) ...@@ -40,10 +40,10 @@ main1 (unsigned int x, unsigned int y)
/* Check results. */ /* Check results. */
if ((x <= y if ((x <= y
&& (out[0] != (in[0] + 23) * x && (out[0] != (in[0] + 23) * (x + 1)
|| out[1] != (in[1] + 142) * y || out[1] != (in[1] + 142) * (y + 1)
|| out[2] != (in[2] + 2) * x || out[2] != (in[2] + 2) * (x + 1)
|| out[3] != (in[3] + 31) * y)) || out[3] != (in[3] + 31) * (y + 1)))
|| (x > y || (x > y
&& (b[0] != (in[0] + 23) && (b[0] != (in[0] + 23)
|| b[1] != (in[1] + 142) || b[1] != (in[1] + 142)
......
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