Commit d47d7438 by Richard Biener Committed by Richard Biener

pr65947-9.c: Adjust.

2017-06-20  Richard Biener  <rguenther@suse.de>

	* gcc.dg/vect/pr65947-9.c: Adjust.

From-SVN: r249400
parent b5c7b957
2017-06-20 Richard Biener <rguenther@suse.de>
* gcc.dg/vect/pr65947-9.c: Adjust.
2017-06-20 Prakhar Bahuguna <prakhar.bahuguna@arm.com> 2017-06-20 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
* gcc.target/arm/acle/cdp.c: Add feature macro bitmap test. * gcc.target/arm/acle/cdp.c: Add feature macro bitmap test.
......
...@@ -9,10 +9,10 @@ extern void abort (void) __attribute__ ((noreturn)); ...@@ -9,10 +9,10 @@ extern void abort (void) __attribute__ ((noreturn));
/* Condition reduction with maximum possible loop size. Will fail to /* Condition reduction with maximum possible loop size. Will fail to
vectorize because the vectorisation requires a slot for default values. */ vectorize because the vectorisation requires a slot for default values. */
char signed char __attribute__((noinline,noclone))
condition_reduction (char *a, char min_v) condition_reduction (char *a, char min_v)
{ {
char last = -72; signed char last = -72;
for (int i = 0; i < N; i++) for (int i = 0; i < N; i++)
if (a[i] < min_v) if (a[i] < min_v)
...@@ -21,10 +21,10 @@ condition_reduction (char *a, char min_v) ...@@ -21,10 +21,10 @@ condition_reduction (char *a, char min_v)
return last; return last;
} }
char int
main (void) main ()
{ {
char a[N] = { signed char a[N] = {
11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20,
1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10,
21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30,
...@@ -34,11 +34,14 @@ main (void) ...@@ -34,11 +34,14 @@ main (void)
check_vect (); check_vect ();
char ret = condition_reduction (a, 16); signed char ret = condition_reduction (a, 16);
if (ret != 10) if (ret != 10)
abort (); abort ();
ret = condition_reduction (a, 1);
if (ret != -72)
abort ();
return 0; return 0;
} }
......
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