From 8d8fef197114a986f6597499e9a2a14aca70cd1c Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 22 Oct 2020 10:45:23 +1030 Subject: [PATCH] [RS6000] Link power10 testcases Running the assembler and linker catches more errors. * gcc.target/powerpc/cfuged-1.c, gcc.target/powerpc/cntlzdm-1.c, gcc.target/powerpc/cnttzdm-1.c, gcc.target/powerpc/dg-future-1.c, gcc.target/powerpc/lsbb-runnable.c, gcc.target/powerpc/mma-double-test.c, gcc.target/powerpc/mma-single-test.c, gcc.target/powerpc/p10-arch31.c, gcc.target/powerpc/p10-identify.c, gcc.target/powerpc/pdep-1.c, gcc.target/powerpc/pextd-1.c, gcc.target/powerpc/pr96787-2.c, gcc.target/powerpc/vec-blend-runnable.c, gcc.target/powerpc/vec-cfuged-1.c, gcc.target/powerpc/vec-clrl-1.c, gcc.target/powerpc/vec-clrl-3.c, gcc.target/powerpc/vec-clrr-1.c, gcc.target/powerpc/vec-clrr-3.c, gcc.target/powerpc/vec-cntlzm-1.c, gcc.target/powerpc/vec-cnttzm-1.c, gcc.target/powerpc/vec-extracth-1.c, gcc.target/powerpc/vec-extracth-3.c, gcc.target/powerpc/vec-extracth-5.c, gcc.target/powerpc/vec-extracth-7.c, gcc.target/powerpc/vec-extractl-1.c, gcc.target/powerpc/vec-extractl-3.c, gcc.target/powerpc/vec-extractl-5.c, gcc.target/powerpc/vec-extractl-7.c, gcc.target/powerpc/vec-gnb-1.c, gcc.target/powerpc/vec-insert-word-runnable.c, gcc.target/powerpc/vec-pdep-1.c, gcc.target/powerpc/vec-permute-ext-runnable.c, gcc.target/powerpc/vec-pext-1.c, gcc.target/powerpc/vec-replace-word-runnable.c, gcc.target/powerpc/vec-shift-double-runnable.c, gcc.target/powerpc/vec-splati-runnable.c, gcc.target/powerpc/vec-stril-1.c, gcc.target/powerpc/vec-stril-16.c, gcc.target/powerpc/vec-stril-17.c, gcc.target/powerpc/vec-stril-18.c, gcc.target/powerpc/vec-stril-19.c, gcc.target/powerpc/vec-stril-20.c, gcc.target/powerpc/vec-stril-21.c, gcc.target/powerpc/vec-stril-22.c, gcc.target/powerpc/vec-stril-23.c, gcc.target/powerpc/vec-stril-3.c, gcc.target/powerpc/vec-stril-5.c, gcc.target/powerpc/vec-stril-7.c, gcc.target/powerpc/vec-stril_p-1.c, gcc.target/powerpc/vec-stril_p-3.c, gcc.target/powerpc/vec-stril_p-5.c, gcc.target/powerpc/vec-stril_p-7.c, gcc.target/powerpc/vec-strir-1.c, gcc.target/powerpc/vec-strir-16.c, gcc.target/powerpc/vec-strir-17.c, gcc.target/powerpc/vec-strir-18.c, gcc.target/powerpc/vec-strir-19.c, gcc.target/powerpc/vec-strir-20.c, gcc.target/powerpc/vec-strir-21.c, gcc.target/powerpc/vec-strir-22.c, gcc.target/powerpc/vec-strir-23.c, gcc.target/powerpc/vec-strir-3.c, gcc.target/powerpc/vec-strir-5.c, gcc.target/powerpc/vec-strir-7.c, gcc.target/powerpc/vec-strir_p-1.c, gcc.target/powerpc/vec-strir_p-3.c, gcc.target/powerpc/vec-strir_p-5.c, gcc.target/powerpc/vec-strir_p-7.c, gcc.target/powerpc/vec-ternarylogic-1.c, gcc.target/powerpc/vec-ternarylogic-3.c, gcc.target/powerpc/vec-ternarylogic-5.c, gcc.target/powerpc/vec-ternarylogic-7.c, gcc.target/powerpc/vec-ternarylogic-9.c, gcc.target/powerpc/vsx_mask-count-runnable.c, gcc.target/powerpc/vsx_mask-expand-runnable.c, gcc.target/powerpc/vsx_mask-extract-runnable.c, gcc.target/powerpc/vsx_mask-move-runnable.c, gcc.target/powerpc/xxgenpc-runnable.c: Link testcase when it can't be run. --- gcc/testsuite/gcc.target/powerpc/cfuged-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/cntlzdm-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/cnttzdm-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/dg-future-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/lsbb-runnable.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/mma-double-test.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/mma-single-test.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/p10-arch31.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/p10-identify.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/pdep-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/pextd-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/pr96787-2.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-blend-runnable.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-cfuged-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-clrl-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-clrl-3.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-clrr-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-clrr-3.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-cntlzm-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-cnttzm-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-extracth-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-extracth-3.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-extracth-5.c | 4 +++- gcc/testsuite/gcc.target/powerpc/vec-extracth-7.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-extractl-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-extractl-3.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-extractl-5.c | 4 +++- gcc/testsuite/gcc.target/powerpc/vec-extractl-7.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-gnb-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-insert-word-runnable.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-pdep-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-permute-ext-runnable.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-pext-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-replace-word-runnable.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-shift-double-runnable.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-splati-runnable.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-stril-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-stril-16.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-stril-17.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-stril-18.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-stril-19.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-stril-20.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-stril-21.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-stril-22.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-stril-23.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-stril-3.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-stril-5.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-stril-7.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-stril_p-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-stril_p-3.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-stril_p-5.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-stril_p-7.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-strir-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-strir-16.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-strir-17.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-strir-18.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-strir-19.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-strir-20.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-strir-21.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-strir-22.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-strir-23.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-strir-3.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-strir-5.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-strir-7.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-strir_p-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-strir_p-3.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-strir_p-5.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-strir_p-7.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-1.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-3.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-5.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-7.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-9.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vsx_mask-count-runnable.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vsx_mask-expand-runnable.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vsx_mask-extract-runnable.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/vsx_mask-move-runnable.c | 5 +++-- gcc/testsuite/gcc.target/powerpc/xxgenpc-runnable.c | 5 +++-- 78 files changed, 234 insertions(+), 154 deletions(-) diff --git a/gcc/testsuite/gcc.target/powerpc/cfuged-1.c b/gcc/testsuite/gcc.target/powerpc/cfuged-1.c index 198d541ef05..00883091714 100644 --- a/gcc/testsuite/gcc.target/powerpc/cfuged-1.c +++ b/gcc/testsuite/gcc.target/powerpc/cfuged-1.c @@ -1,6 +1,7 @@ -/* { dg-do run } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ /* { dg-require-effective-target lp64 } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ extern void abort (void); diff --git a/gcc/testsuite/gcc.target/powerpc/cntlzdm-1.c b/gcc/testsuite/gcc.target/powerpc/cntlzdm-1.c index e9ee8354b59..a6bc2d65348 100644 --- a/gcc/testsuite/gcc.target/powerpc/cntlzdm-1.c +++ b/gcc/testsuite/gcc.target/powerpc/cntlzdm-1.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-require-effective-target lp64 } */ /* { dg-options "-mdejagnu-cpu=power10" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/cnttzdm-1.c b/gcc/testsuite/gcc.target/powerpc/cnttzdm-1.c index 4c05c1bc65d..ba948714ea2 100644 --- a/gcc/testsuite/gcc.target/powerpc/cnttzdm-1.c +++ b/gcc/testsuite/gcc.target/powerpc/cnttzdm-1.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-require-effective-target lp64 } */ /* { dg-options "-mdejagnu-cpu=power10" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/dg-future-1.c b/gcc/testsuite/gcc.target/powerpc/dg-future-1.c index 0dbfb06fa32..bc2b3b78500 100644 --- a/gcc/testsuite/gcc.target/powerpc/dg-future-1.c +++ b/gcc/testsuite/gcc.target/powerpc/dg-future-1.c @@ -1,5 +1,6 @@ -/* { dg-do run { target { powerpc*-*-* } } } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ /* This tests that power10_hw works. */ diff --git a/gcc/testsuite/gcc.target/powerpc/lsbb-runnable.c b/gcc/testsuite/gcc.target/powerpc/lsbb-runnable.c index 7da530c8e6e..2e97cc17b60 100644 --- a/gcc/testsuite/gcc.target/powerpc/lsbb-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/lsbb-runnable.c @@ -6,8 +6,9 @@ int vec_test_lsbb_all_ones (vector unsigned char); */ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-fno-inline -mdejagnu-cpu=power10 -O2" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/mma-double-test.c b/gcc/testsuite/gcc.target/powerpc/mma-double-test.c index 044a288ebcc..53843794a95 100755 --- a/gcc/testsuite/gcc.target/powerpc/mma-double-test.c +++ b/gcc/testsuite/gcc.target/powerpc/mma-double-test.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-require-effective-target ppc_mma_hw } */ /* { dg-options "-mdejagnu-cpu=power10 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/mma-single-test.c b/gcc/testsuite/gcc.target/powerpc/mma-single-test.c index 7e628df45b7..ac4125ba329 100755 --- a/gcc/testsuite/gcc.target/powerpc/mma-single-test.c +++ b/gcc/testsuite/gcc.target/powerpc/mma-single-test.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-require-effective-target ppc_mma_hw } */ /* { dg-options "-mdejagnu-cpu=power10 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/p10-arch31.c b/gcc/testsuite/gcc.target/powerpc/p10-arch31.c index a9a75ec83f6..d4ec18c9d72 100644 --- a/gcc/testsuite/gcc.target/powerpc/p10-arch31.c +++ b/gcc/testsuite/gcc.target/powerpc/p10-arch31.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10 -O2" } */ /* This test will only run when the power10_hw_available test passes. diff --git a/gcc/testsuite/gcc.target/powerpc/p10-identify.c b/gcc/testsuite/gcc.target/powerpc/p10-identify.c index 85326976a5d..6b00abfe046 100644 --- a/gcc/testsuite/gcc.target/powerpc/p10-identify.c +++ b/gcc/testsuite/gcc.target/powerpc/p10-identify.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10 -O2" } */ /* This test will only run when the power10_hw_available test passes. diff --git a/gcc/testsuite/gcc.target/powerpc/pdep-1.c b/gcc/testsuite/gcc.target/powerpc/pdep-1.c index ab0efd25b09..458bceadebb 100644 --- a/gcc/testsuite/gcc.target/powerpc/pdep-1.c +++ b/gcc/testsuite/gcc.target/powerpc/pdep-1.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-require-effective-target lp64 } */ /* { dg-options "-mdejagnu-cpu=power10" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/pextd-1.c b/gcc/testsuite/gcc.target/powerpc/pextd-1.c index ab081423a95..4f00cc94385 100644 --- a/gcc/testsuite/gcc.target/powerpc/pextd-1.c +++ b/gcc/testsuite/gcc.target/powerpc/pextd-1.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-require-effective-target lp64 } */ /* { dg-options "-mdejagnu-cpu=power10" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/pr96787-2.c b/gcc/testsuite/gcc.target/powerpc/pr96787-2.c index b10ab7a8ce8..8c4469dc6f6 100644 --- a/gcc/testsuite/gcc.target/powerpc/pr96787-2.c +++ b/gcc/testsuite/gcc.target/powerpc/pr96787-2.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power10" } */ /* Verify that we generate an indirect sibcall for ELFv2 on P10 and diff --git a/gcc/testsuite/gcc.target/powerpc/vec-blend-runnable.c b/gcc/testsuite/gcc.target/powerpc/vec-blend-runnable.c index 0c3d47234ed..774960bbcd3 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-blend-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-blend-runnable.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-cfuged-1.c b/gcc/testsuite/gcc.target/powerpc/vec-cfuged-1.c index 2a6f5ed8c8e..7507c63f24a 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-cfuged-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-cfuged-1.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-clrl-1.c b/gcc/testsuite/gcc.target/powerpc/vec-clrl-1.c index 7f7d28b04d5..43ab32c0278 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-clrl-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-clrl-1.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-clrl-3.c b/gcc/testsuite/gcc.target/powerpc/vec-clrl-3.c index 26eae792f27..0ae5abcee50 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-clrl-3.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-clrl-3.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-clrr-1.c b/gcc/testsuite/gcc.target/powerpc/vec-clrr-1.c index 307617ece64..c72ae86cd32 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-clrr-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-clrr-1.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-clrr-3.c b/gcc/testsuite/gcc.target/powerpc/vec-clrr-3.c index b46995d4ffe..1413c11b872 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-clrr-3.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-clrr-3.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-cntlzm-1.c b/gcc/testsuite/gcc.target/powerpc/vec-cntlzm-1.c index b92bccf1d2a..f35697006cd 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-cntlzm-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-cntlzm-1.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-cnttzm-1.c b/gcc/testsuite/gcc.target/powerpc/vec-cnttzm-1.c index 83bdd954e54..b460c166292 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-cnttzm-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-cnttzm-1.c @@ -1,5 +1,6 @@ -/* { dg-do compile } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-extracth-1.c b/gcc/testsuite/gcc.target/powerpc/vec-extracth-1.c index 13618cef26c..8109abcfbf5 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-extracth-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-extracth-1.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-extracth-3.c b/gcc/testsuite/gcc.target/powerpc/vec-extracth-3.c index 1d8a690979c..7ba976817aa 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-extracth-3.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-extracth-3.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-extracth-5.c b/gcc/testsuite/gcc.target/powerpc/vec-extracth-5.c index 17229f40389..c59dea03057 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-extracth-5.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-extracth-5.c @@ -1,4 +1,6 @@ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-extracth-7.c b/gcc/testsuite/gcc.target/powerpc/vec-extracth-7.c index 64ca22e85e6..e74ea5ca800 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-extracth-7.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-extracth-7.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-extractl-1.c b/gcc/testsuite/gcc.target/powerpc/vec-extractl-1.c index 879c253d416..41539566ee4 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-extractl-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-extractl-1.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-extractl-3.c b/gcc/testsuite/gcc.target/powerpc/vec-extractl-3.c index b3ab43326b3..babd25f4ade 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-extractl-3.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-extractl-3.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-extractl-5.c b/gcc/testsuite/gcc.target/powerpc/vec-extractl-5.c index df239e83e1c..e642e3144e0 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-extractl-5.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-extractl-5.c @@ -1,4 +1,6 @@ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-extractl-7.c b/gcc/testsuite/gcc.target/powerpc/vec-extractl-7.c index fd1ab604f45..4c3c7cb9079 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-extractl-7.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-extractl-7.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-gnb-1.c b/gcc/testsuite/gcc.target/powerpc/vec-gnb-1.c index 527cc3fb06c..e64fe023e3e 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-gnb-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-gnb-1.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-require-effective-target int128 } */ /* { dg-options "-mdejagnu-cpu=power10" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/vec-insert-word-runnable.c b/gcc/testsuite/gcc.target/powerpc/vec-insert-word-runnable.c index 8c2721aedfc..55ca1c4b35d 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-insert-word-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-insert-word-runnable.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-pdep-1.c b/gcc/testsuite/gcc.target/powerpc/vec-pdep-1.c index 02404a6d316..d7e6484e138 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-pdep-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-pdep-1.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-permute-ext-runnable.c b/gcc/testsuite/gcc.target/powerpc/vec-permute-ext-runnable.c index c2dcd48b4c5..2626d876d3d 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-permute-ext-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-permute-ext-runnable.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-pext-1.c b/gcc/testsuite/gcc.target/powerpc/vec-pext-1.c index ed289bfbe13..286fdcef85e 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-pext-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-pext-1.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-replace-word-runnable.c b/gcc/testsuite/gcc.target/powerpc/vec-replace-word-runnable.c index 94af2106482..413b9048eca 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-replace-word-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-replace-word-runnable.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-shift-double-runnable.c b/gcc/testsuite/gcc.target/powerpc/vec-shift-double-runnable.c index 13213bd22ee..b8478f5c32d 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-shift-double-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-shift-double-runnable.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-splati-runnable.c b/gcc/testsuite/gcc.target/powerpc/vec-splati-runnable.c index e5a4935644f..1c8fdc5a3df 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-splati-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-splati-runnable.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-stril-1.c b/gcc/testsuite/gcc.target/powerpc/vec-stril-1.c index 98ee29f7c5e..ce83f77614d 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-stril-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-stril-1.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-stril-16.c b/gcc/testsuite/gcc.target/powerpc/vec-stril-16.c index 6aaad999f4c..ad888d8c4cb 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-stril-16.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-stril-16.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-O1 -mdejagnu-cpu=power10" } */ /* See vec-stril-17.c for the same test with -O2 optimization. */ diff --git a/gcc/testsuite/gcc.target/powerpc/vec-stril-17.c b/gcc/testsuite/gcc.target/powerpc/vec-stril-17.c index 2015aad07ff..6274f2ac3fb 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-stril-17.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-stril-17.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-stril-18.c b/gcc/testsuite/gcc.target/powerpc/vec-stril-18.c index fce56937537..be48daa3342 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-stril-18.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-stril-18.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-O1 -mdejagnu-cpu=power10" } */ /* See vec-stril-19.c for the same test with -O2 optimization. */ diff --git a/gcc/testsuite/gcc.target/powerpc/vec-stril-19.c b/gcc/testsuite/gcc.target/powerpc/vec-stril-19.c index 6226dde0ba7..74ab15c3ea8 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-stril-19.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-stril-19.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-stril-20.c b/gcc/testsuite/gcc.target/powerpc/vec-stril-20.c index 9da116c050b..a2db6a75cb3 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-stril-20.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-stril-20.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-O1 -mdejagnu-cpu=power10" } */ /* See vec-stril-21.c for the same test with -O2 optimization. */ diff --git a/gcc/testsuite/gcc.target/powerpc/vec-stril-21.c b/gcc/testsuite/gcc.target/powerpc/vec-stril-21.c index b281c45c56d..07274c68307 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-stril-21.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-stril-21.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-stril-22.c b/gcc/testsuite/gcc.target/powerpc/vec-stril-22.c index a63dab727fa..a2e6bac642a 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-stril-22.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-stril-22.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-O1 -mdejagnu-cpu=power10" } */ /* See vec-stril-23.c for the same test with -O2 optimization. */ diff --git a/gcc/testsuite/gcc.target/powerpc/vec-stril-23.c b/gcc/testsuite/gcc.target/powerpc/vec-stril-23.c index ec0e4836457..a5ef78ddac8 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-stril-23.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-stril-23.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-stril-3.c b/gcc/testsuite/gcc.target/powerpc/vec-stril-3.c index 970c1a13c82..49cb232b05e 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-stril-3.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-stril-3.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-stril-5.c b/gcc/testsuite/gcc.target/powerpc/vec-stril-5.c index c74cad63db4..8e29d556a6a 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-stril-5.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-stril-5.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-stril-7.c b/gcc/testsuite/gcc.target/powerpc/vec-stril-7.c index 9c5d45421c5..6b39dfce562 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-stril-7.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-stril-7.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-stril_p-1.c b/gcc/testsuite/gcc.target/powerpc/vec-stril_p-1.c index cd9c468c280..ca2c76cea50 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-stril_p-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-stril_p-1.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-stril_p-3.c b/gcc/testsuite/gcc.target/powerpc/vec-stril_p-3.c index 24b0a86372e..8fb3fe71239 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-stril_p-3.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-stril_p-3.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-stril_p-5.c b/gcc/testsuite/gcc.target/powerpc/vec-stril_p-5.c index 2c2ff34fd0e..bc8834a5a28 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-stril_p-5.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-stril_p-5.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-stril_p-7.c b/gcc/testsuite/gcc.target/powerpc/vec-stril_p-7.c index 900aaf17f46..d235a535c41 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-stril_p-7.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-stril_p-7.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-strir-1.c b/gcc/testsuite/gcc.target/powerpc/vec-strir-1.c index ff09cd3dd92..5bee3f7f373 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-strir-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-strir-1.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-strir-16.c b/gcc/testsuite/gcc.target/powerpc/vec-strir-16.c index 19e051e06ae..86a450ea066 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-strir-16.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-strir-16.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-O1 -mdejagnu-cpu=power10" } */ /* See vec-strir-17.c for the same test with -O2 optimization. */ diff --git a/gcc/testsuite/gcc.target/powerpc/vec-strir-17.c b/gcc/testsuite/gcc.target/powerpc/vec-strir-17.c index 00f27cc49e6..d660092034c 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-strir-17.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-strir-17.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-strir-18.c b/gcc/testsuite/gcc.target/powerpc/vec-strir-18.c index d69b474626a..c6dd6ca0356 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-strir-18.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-strir-18.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-O1 -mdejagnu-cpu=power10" } */ /* See vec-strir-19.c for the same test with -O2 optimization. */ diff --git a/gcc/testsuite/gcc.target/powerpc/vec-strir-19.c b/gcc/testsuite/gcc.target/powerpc/vec-strir-19.c index 3728d49421a..54277cc7173 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-strir-19.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-strir-19.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-strir-20.c b/gcc/testsuite/gcc.target/powerpc/vec-strir-20.c index a635a041edd..3baa0358668 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-strir-20.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-strir-20.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-O1 -mdejagnu-cpu=power10" } */ /* See vec-strir-21.c for the same test with -O2 optimization. */ diff --git a/gcc/testsuite/gcc.target/powerpc/vec-strir-21.c b/gcc/testsuite/gcc.target/powerpc/vec-strir-21.c index 5557d5de229..1a90e56ee6e 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-strir-21.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-strir-21.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-strir-22.c b/gcc/testsuite/gcc.target/powerpc/vec-strir-22.c index 328a56b619e..5621f3cc888 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-strir-22.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-strir-22.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-O1 -mdejagnu-cpu=power10" } */ /* See vec-strir-23.c for the same test with -O2 optimization. */ diff --git a/gcc/testsuite/gcc.target/powerpc/vec-strir-23.c b/gcc/testsuite/gcc.target/powerpc/vec-strir-23.c index 5f05ab28f75..118c702eaf8 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-strir-23.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-strir-23.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-strir-3.c b/gcc/testsuite/gcc.target/powerpc/vec-strir-3.c index 5fb2306b471..c266d3ac133 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-strir-3.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-strir-3.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-strir-5.c b/gcc/testsuite/gcc.target/powerpc/vec-strir-5.c index eabecafa43a..f18d91bfe8c 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-strir-5.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-strir-5.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-strir-7.c b/gcc/testsuite/gcc.target/powerpc/vec-strir-7.c index a73efea68ee..2641985d5bc 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-strir-7.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-strir-7.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-strir_p-1.c b/gcc/testsuite/gcc.target/powerpc/vec-strir_p-1.c index 569b8b466e3..3744c905514 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-strir_p-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-strir_p-1.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-strir_p-3.c b/gcc/testsuite/gcc.target/powerpc/vec-strir_p-3.c index 3a411feb409..70ab0f61f18 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-strir_p-3.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-strir_p-3.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-strir_p-5.c b/gcc/testsuite/gcc.target/powerpc/vec-strir_p-5.c index 0edff34737b..ad02c97881a 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-strir_p-5.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-strir_p-5.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-strir_p-7.c b/gcc/testsuite/gcc.target/powerpc/vec-strir_p-7.c index 18926b0d738..71ce6088643 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-strir_p-7.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-strir_p-7.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-1.c b/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-1.c index 052d99de834..3cd0a554977 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-1.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-1.c @@ -1,5 +1,6 @@ -/* { dg-do run} */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-3.c b/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-3.c index 411bafe7e16..47bca10fa58 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-3.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-3.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-5.c b/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-5.c index 527e8f2f8bc..4d4344b58a9 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-5.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-5.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-7.c b/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-7.c index b754195c2dc..45936f36869 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-7.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-7.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-options "-mdejagnu-cpu=power10" } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-9.c b/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-9.c index 0d9998e6341..71e52ee880b 100644 --- a/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-9.c +++ b/gcc/testsuite/gcc.target/powerpc/vec-ternarylogic-9.c @@ -1,5 +1,6 @@ -/* { dg-do run } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ +/* { dg-require-effective-target power10_ok } */ /* { dg-require-effective-target int128 } */ /* { dg-options "-mdejagnu-cpu=power10" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/vsx_mask-count-runnable.c b/gcc/testsuite/gcc.target/powerpc/vsx_mask-count-runnable.c index f1e3860ee43..5862517eae9 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsx_mask-count-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/vsx_mask-count-runnable.c @@ -1,6 +1,7 @@ -/* { dg-do run } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ /* { dg-options "-mcpu=power10 -O2" } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-require-effective-target power10_ok } */ /* Check that the expected 128-bit instructions are generated if the processor supports the 128-bit integer instructions. */ diff --git a/gcc/testsuite/gcc.target/powerpc/vsx_mask-expand-runnable.c b/gcc/testsuite/gcc.target/powerpc/vsx_mask-expand-runnable.c index 0c5695e4807..13b4c8afd4f 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsx_mask-expand-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/vsx_mask-expand-runnable.c @@ -1,6 +1,7 @@ -/* { dg-do run } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ /* { dg-options "-mcpu=power10 -O2" } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-require-effective-target power10_ok } */ /* Check that the expected 128-bit instructions are generated if the processor supports the 128-bit integer instructions. */ diff --git a/gcc/testsuite/gcc.target/powerpc/vsx_mask-extract-runnable.c b/gcc/testsuite/gcc.target/powerpc/vsx_mask-extract-runnable.c index 93c3c720246..d58a6b0b682 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsx_mask-extract-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/vsx_mask-extract-runnable.c @@ -1,6 +1,7 @@ -/* { dg-do run } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ /* { dg-options "-mcpu=power10 -O2" } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-require-effective-target power10_ok } */ /* Check that the expected 128-bit instructions are generated if the processor supports the 128-bit integer instructions. */ diff --git a/gcc/testsuite/gcc.target/powerpc/vsx_mask-move-runnable.c b/gcc/testsuite/gcc.target/powerpc/vsx_mask-move-runnable.c index 41dee583e59..9147d67c9d1 100644 --- a/gcc/testsuite/gcc.target/powerpc/vsx_mask-move-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/vsx_mask-move-runnable.c @@ -1,6 +1,7 @@ -/* { dg-do run } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ /* { dg-options "-mcpu=power10 -O2" } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-require-effective-target power10_ok } */ /* Check that the expected 128-bit instructions are generated if the processor supports the 128-bit integer instructions. */ diff --git a/gcc/testsuite/gcc.target/powerpc/xxgenpc-runnable.c b/gcc/testsuite/gcc.target/powerpc/xxgenpc-runnable.c index 244c57365d4..d4040ea8b70 100644 --- a/gcc/testsuite/gcc.target/powerpc/xxgenpc-runnable.c +++ b/gcc/testsuite/gcc.target/powerpc/xxgenpc-runnable.c @@ -1,6 +1,7 @@ -/* { dg-do run } */ +/* { dg-do run { target { power10_hw } } } */ +/* { dg-do link { target { ! power10_hw } } } */ /* { dg-options "-mdejagnu-cpu=power10 -O2" } */ -/* { dg-require-effective-target power10_hw } */ +/* { dg-require-effective-target power10_ok } */ #include -- 2.30.2