[committed] Fix PR89834

Message ID eaa26879-80c4-b538-4232-c833f6eb1c7d@linux.ibm.com
State New
Headers show
Series
  • [committed] Fix PR89834
Related show

Commit Message

Bill Schmidt March 27, 2019, 8:45 p.m.
Hi,

PR89834 identifies a problem with test case gcc.dg/vect/pr81740-2.c, which relies
implicitly on vectorizing unaligned accesses.  This causes it to fail when the
target processor does not support this.  The attached patch requires vect_hw_misalign
so that the test is skipped on such targets.

Tested on powerpc64le-unknown-linux-gnu (P9) and powerpc64-unknown-linux-gnu (P7),
correct behavior verified.  Committed as requested in the bugzilla (r269978).

Thanks,
Bill


2019-03-27  Bill Schmidt  <wschmidt@linux.ibm.com>

	* gcc.dg/vect/pr81740-2.c: Require vect_hw_misalign.

Patch

Index: gcc/testsuite/gcc.dg/vect/pr81740-2.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/pr81740-2.c	(revision 269967)
+++ gcc/testsuite/gcc.dg/vect/pr81740-2.c	(working copy)
@@ -1,5 +1,6 @@ 
 /* { dg-do run } */
 /* { dg-require-effective-target vect_int } */
+/* { dg-require-effective-target vect_hw_misalign } */
 
 #include "tree-vect.h"