From 782ebeaa681163cfd0c59f03cd850fdd52287b79 Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Wed, 14 Oct 2020 22:05:09 -0400 Subject: [PATCH] testsuite: Add appropriate target requirements to P9 testcases. This patch adds effective target and target specific expected results to a few P9 testcases. gcc/testsuite/ChangeLog: * gcc.target/powerpc/builtins-5-p9-runnable.c: Require lp64. * gcc.target/powerpc/builtins-msum-runnable.c: Require int128. * gcc.target/powerpc/float128-cmp2-runnable.c: Require float128. * gcc.target/powerpc/fold-vec-extract-double.p9.c: Require lp64. --- gcc/testsuite/gcc.target/powerpc/builtins-5-p9-runnable.c | 2 +- gcc/testsuite/gcc.target/powerpc/builtins-msum-runnable.c | 4 +++- gcc/testsuite/gcc.target/powerpc/float128-cmp2-runnable.c | 4 +++- .../gcc.target/powerpc/fold-vec-extract-double.p9.c | 8 ++++---- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/gcc/testsuite/gcc.target/powerpc/builtins-5-p9-runnable.c b/gcc/testsuite/gcc.target/powerpc/builtins-5-p9-runnable.c index 0fe62064cbe..14e935513fe 100644 --- a/gcc/testsuite/gcc.target/powerpc/builtins-5-p9-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/builtins-5-p9-runnable.c @@ -1,4 +1,4 @@ -/* { dg-do run } */ +/* { dg-do run { target lp64 } } */ /* { dg-require-effective-target p9vector_hw } */ /* { dg-options "-mdejagnu-cpu=power9 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/builtins-msum-runnable.c b/gcc/testsuite/gcc.target/powerpc/builtins-msum-runnable.c index 0fa5c319b6d..abc0a0d2832 100644 --- a/gcc/testsuite/gcc.target/powerpc/builtins-msum-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/builtins-msum-runnable.c @@ -1,4 +1,6 @@ -/* { dg-do run { target { p9vector_hw } } } */ +/* { dg-do run } */ +/* { dg-require-effective-target p9vector_hw } */ +/* { dg-require-effective-target int128 } */ /* { dg-options "-mdejagnu-cpu=power9 -O2" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/float128-cmp2-runnable.c b/gcc/testsuite/gcc.target/powerpc/float128-cmp2-runnable.c index 93dd1128a3f..d376a3ca68e 100644 --- a/gcc/testsuite/gcc.target/powerpc/float128-cmp2-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/float128-cmp2-runnable.c @@ -1,4 +1,6 @@ -/* { dg-do run { target { powerpc*-*-* && p9vector_hw } } } */ +/* { dg-do run } */ +/* { dg-require-effective-target ppc_float128_sw } */ +/* { dg-require-effective-target p9vector_hw } */ /* { dg-options "-O2 -mdejagnu-cpu=power9 " } */ #define NAN_Q __builtin_nanq ("") diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-double.p9.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-double.p9.c index 2a3bfc157c6..6c515035d1a 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-double.p9.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-double.p9.c @@ -5,10 +5,10 @@ /* { dg-require-effective-target p9vector_hw } */ /* { dg-options "-mdejagnu-cpu=power9 -O2 " } */ -/* { dg-final { scan-assembler-times {\mxxlor\M} 2 } } */ -/* { dg-final { scan-assembler-times {\mrldic\M} 1 } } */ -/* { dg-final { scan-assembler-times {\mmtvsrdd\M} 1 } } */ -/* { dg-final { scan-assembler-times {\mvslo\M} 1 } } */ +/* { dg-final { scan-assembler-times {\mxxlor\M} 2 { target lp64} } } */ +/* { dg-final { scan-assembler-times {\mrldic\M} 1 { target lp64} } } */ +/* { dg-final { scan-assembler-times {\mmtvsrdd\M} 1 { target lp64} } } */ +/* { dg-final { scan-assembler-times {\mvslo\M} 1 { target lp64} } } */ #include -- 2.30.2