From b0dd8f37fa8a1c4d792513809605d8d715700f12 Mon Sep 17 00:00:00 2001 From: Kewen Lin Date: Thu, 17 Jan 2019 03:03:38 +0000 Subject: [PATCH] [PATCH, rs6000, testsuite] Fix PR87306 PR target/87306 * gcc.dg/vect/bb-slp-pow-1.c: Modify to reflect that the loop is not vectorized on POWER unless hardware misaligned loads are available. From-SVN: r268003 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/gcc.dg/vect/bb-slp-pow-1.c | 6 +++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index d662e2a90a2..cd20207333a 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2019-01-17 Kewen Lin + + PR target/87306 + * gcc.dg/vect/bb-slp-pow-1.c: Modify to reflect that the loop is not + vectorized on POWER unless hardware misaligned loads are available. + 2019-01-16 David Malcolm PR target/88861 diff --git a/gcc/testsuite/gcc.dg/vect/bb-slp-pow-1.c b/gcc/testsuite/gcc.dg/vect/bb-slp-pow-1.c index 5a05bd49312..cfe654e8136 100644 --- a/gcc/testsuite/gcc.dg/vect/bb-slp-pow-1.c +++ b/gcc/testsuite/gcc.dg/vect/bb-slp-pow-1.c @@ -25,4 +25,8 @@ main (void) return 0; } -/* { dg-final { scan-tree-dump-times "basic block vectorized" 1 "slp2" } } */ +/* On older powerpc hardware (POWER7 and earlier), the default flag + -mno-allow-movmisalign prevents vectorization. On POWER8 and later, + when vect_hw_misalign is true, vectorization occurs. */ + +/* { dg-final { scan-tree-dump-times "basic block vectorized" 1 "slp2" { target {{ ! powerpc*-*-* } || { powerpc*-*-* && vect_hw_misalign }} } } } */ -- 2.30.2