diff options
author | Will Schmidt <will_schmidt@vnet.ibm.com> | 2017-06-01 22:00:45 +0000 |
---|---|---|
committer | Will Schmidt <willschm@gcc.gnu.org> | 2017-06-01 22:00:45 +0000 |
commit | 052754ea183cd0da87af930ae07355137ca68a81 (patch) | |
tree | 3761f26ecd9974f49c19294e9c038d05b5334377 /gcc | |
parent | d80d523964c1c4c426e17d504ff6e72361f36821 (diff) | |
download | gcc-052754ea183cd0da87af930ae07355137ca68a81.zip gcc-052754ea183cd0da87af930ae07355137ca68a81.tar.gz gcc-052754ea183cd0da87af930ae07355137ca68a81.tar.bz2 |
fold-vec-logical-ors-longlong.c: Update the target to power8-vector.
[gcc/testsuite]
2017-05-26 Will Schmidt <will_schmidt@vnet.ibm.com>
* gcc.target/powerpc/fold-vec-logical-ors-longlong.c:
Update the target to power8-vector.
From-SVN: r248805
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/testsuite/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/testsuite/gcc.target/powerpc/fold-vec-logical-ors-longlong.c | 14 |
2 files changed, 12 insertions, 7 deletions
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 1f1bc3c..2785850 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2017-06-01 Will Schmidt <will_schmidt@vnet.ibm.com> + + * gcc.target/powerpc/fold-vec-logical-ors-longlong.c: + Update the target to power8-vector. + 2017-06-01 David Malcolm <dmalcolm@redhat.com> * lib/gcc-dg.exp: Ensure GCC_COLORS is unset. diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-logical-ors-longlong.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-logical-ors-longlong.c index 7ca23fb..10c69d3 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-logical-ors-longlong.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-logical-ors-longlong.c @@ -2,8 +2,8 @@ * long long inputs produce the right results. */ /* { dg-do compile } */ -/* { dg-require-effective-target powerpc_vsx_ok } */ -/* { dg-options "-mvsx -O2" } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ +/* { dg-options "-mpower8-vector -O2" } */ #include <altivec.h> @@ -151,11 +151,11 @@ test6_nor (vector unsigned long long x, vector unsigned long long y) return *foo; } -// Codegen on power7 is such that the vec_or() tests generate more xxlor -// instructions than what is seen on power8 or newer. -// Thus, an additional target clause for the xxlor instruction check. -/* { dg-final { scan-assembler-times {\mxxlor\M} 6 { target p8vector_hw } } } */ -/* { dg-final { scan-assembler-times {\mxxlor\M} 24 { target { ! p8vector_hw } } } } */ +// The number of xxlor instructions generated varies between 6 and 24 for +// older systems (power6,power7), as well as for 32-bit versus 64-bit targets. +// For simplicity, this test now only targets "powerpc_p8vector_ok" environments +// where the answer is expected to be 6. +/* { dg-final { scan-assembler-times {\mxxlor\M} 6 } } */ /* { dg-final { scan-assembler-times {\mxxlxor\M} 6 } } */ /* { dg-final { scan-assembler-times {\mxxlnor\M} 6 } } */ |