From 0d918596ace1f32716143a12fd2738bb0e9b2e20 Mon Sep 17 00:00:00 2001 From: Will Schmidt Date: Mon, 22 Jan 2018 14:49:57 +0000 Subject: [PATCH] fold-vec-abs-short-fwrap.c: Add xxspltib to scan-asembler valid instructions list. [testsuite] 2018-01-19 Will Schmidt * gcc.target/powerpc/fold-vec-abs-short-fwrap.c: Add xxspltib to scan-asembler valid instructions list. * gcc.target/powerpc/fold-vec-abs-short.c: Same. * gcc.target/powerpc/fold-vec-shift-left-longlong.c: Clean up power8-vector requirement and option. * gcc.target/powerpc/fold-vec-shift-left-fwrapv.c: Same. From-SVN: r256947 --- gcc/testsuite/ChangeLog | 9 +++++++++ .../gcc.target/powerpc/fold-vec-abs-short-fwrapv.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-abs-short.c | 2 +- .../powerpc/fold-vec-shift-left-longlong-fwrapv.c | 4 ++-- .../gcc.target/powerpc/fold-vec-shift-left-longlong.c | 4 ++-- 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 512bf5128b3..3fd258e43d0 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,12 @@ +2018-01-22 Will Schmidt + + * gcc.target/powerpc/fold-vec-abs-short-fwrap.c: Add xxspltib to + scan-asembler valid instructions list. + * gcc.target/powerpc/fold-vec-abs-short.c: Same. + * gcc.target/powerpc/fold-vec-shift-left-longlong.c: Clean up + power8-vector requirement and option. + * gcc.target/powerpc/fold-vec-shift-left-fwrapv.c: Same. + 2018-01-22 Janne Blomqvist PR 78534 diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-abs-short-fwrapv.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-abs-short-fwrapv.c index 2562179af72..705bbe97429 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-abs-short-fwrapv.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-abs-short-fwrapv.c @@ -13,6 +13,6 @@ test3 (vector signed short x) return vec_abs (x); } -/* { dg-final { scan-assembler-times "vspltisw|vxor" 1 } } */ +/* { dg-final { scan-assembler-times "vspltisw|xxspltib|vxor" 1 } } */ /* { dg-final { scan-assembler-times "vsubuhm" 1 } } */ /* { dg-final { scan-assembler-times "vmaxsh" 1 } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-abs-short.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-abs-short.c index d3120002b33..0ad850f06b3 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-abs-short.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-abs-short.c @@ -13,6 +13,6 @@ test3 (vector signed short x) return vec_abs (x); } -/* { dg-final { scan-assembler-times "vspltisw|vxor" 1 } } */ +/* { dg-final { scan-assembler-times "vspltisw|xxspltib|vxor" 1 } } */ /* { dg-final { scan-assembler-times "vsubuhm" 1 } } */ /* { dg-final { scan-assembler-times "vmaxsh" 1 } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-shift-left-longlong-fwrapv.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-shift-left-longlong-fwrapv.c index b7766835ecd..486426a4318 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-shift-left-longlong-fwrapv.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-shift-left-longlong-fwrapv.c @@ -2,8 +2,8 @@ /* This test covers the shift left tests with the -fwrapv option. */ /* { dg-do compile } */ -/* { dg-require-effective-target powerpc_altivec_ok } */ -/* { dg-options "-maltivec -O2 -mpower8-vector -fwrapv" } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ +/* { dg-options "-mpower8-vector -O2 -fwrapv" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-shift-left-longlong.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-shift-left-longlong.c index f040486bf56..4116dbc5fdb 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-shift-left-longlong.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-shift-left-longlong.c @@ -2,8 +2,8 @@ * This is a counterpart to the fold-vec-shift-left-frwapv test. */ /* { dg-do compile } */ -/* { dg-require-effective-target powerpc_altivec_ok } */ -/* { dg-options "-maltivec -mpower8-vector -O2" } */ +/* { dg-require-effective-target powerpc_p8vector_ok } */ +/* { dg-options "-mpower8-vector -O2" } */ #include -- 2.30.2