From badeac77f55276d047b3cc202e4ddd49ba643d8a Mon Sep 17 00:00:00 2001 From: David Edelsohn Date: Mon, 19 Oct 2020 09:50:44 -0400 Subject: [PATCH] testsuite: Enable and adjust powerpc fold-vec-extract/insert testcases. This patch enables a number of testcases on non-Linux targets, adjusts the target requirements, and updates the expected results. gcc/testsuite/ChangeLog: * gcc.target/powerpc/fold-vec-extract-char.p7.c: Remove target. * gcc.target/powerpc/fold-vec-extract-char.p8.c: Remove target. * gcc.target/powerpc/fold-vec-extract-char.p9.c: Remove target. Expect 3 addi for ilp32. * gcc.target/powerpc/fold-vec-extract-double.p7.c: Remove target. Add -mbig-endian for Linux. * gcc.target/powerpc/fold-vec-extract-double.p8.c: Remove target. * gcc.target/powerpc/fold-vec-extract-float.p7.c: Remove target. * gcc.target/powerpc/fold-vec-extract-float.p8.c: Remove target. * gcc.target/powerpc/fold-vec-extract-float.p9.c: Require lp64. * gcc.target/powerpc/fold-vec-extract-int.p7.c: Remove target. * gcc.target/powerpc/fold-vec-extract-int.p8.c: Remove target. * gcc.target/powerpc/fold-vec-extract-int.p9.c: Remove target. Expect 3 addi for ilp32. * gcc.target/powerpc/fold-vec-extract-longlong.p7.c: Remove target. Expect 4 addi for ilp32. * gcc.target/powerpc/fold-vec-extract-longlong.p8.c: Remove target. Expect 4 addi for ilp32. * gcc.target/powerpc/fold-vec-extract-longlong.p9.c: Require lp64. * gcc.target/powerpc/fold-vec-extract-short.p7.c: Remove target. * gcc.target/powerpc/fold-vec-extract-short.p8.c: Remove target. * gcc.target/powerpc/fold-vec-extract-short.p9.c: Require lp64. * gcc.target/powerpc/fold-vec-insert-char-p8.c: Remove target. * gcc.target/powerpc/fold-vec-insert-char-p9.c: Remove target. * gcc.target/powerpc/fold-vec-insert-double.c: Remove target. * gcc.target/powerpc/fold-vec-insert-float-p8.c: Remove target. * gcc.target/powerpc/fold-vec-insert-float-p9.c: Remove target. * gcc.target/powerpc/fold-vec-insert-int-p8.c: Remove target. * gcc.target/powerpc/fold-vec-insert-int-p9.c: Remove target. Require 8 addi for ilp32. * gcc.target/powerpc/fold-vec-insert-longlong.c: Remove target. * gcc.target/powerpc/fold-vec-insert-short-p8.c: Remove target. * gcc.target/powerpc/fold-vec-insert-short-p9.c: Remove target. * gcc.target/powerpc/fold-vec-select-double.c: Remove target. * gcc.target/powerpc/fold-vec-select-float.c: Remove target. * gcc.target/powerpc/fold-vec-splats-int.c: Require lp64. * gcc.target/powerpc/fold-vec-splats-longlong.c: Require lp64. --- gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p7.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p8.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p9.c | 4 ++-- .../gcc.target/powerpc/fold-vec-extract-double.p7.c | 5 +++-- .../gcc.target/powerpc/fold-vec-extract-double.p8.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-extract-float.p7.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-extract-float.p8.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-extract-float.p9.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-extract-int.p7.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-extract-int.p8.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-extract-int.p9.c | 4 ++-- .../gcc.target/powerpc/fold-vec-extract-longlong.p7.c | 5 +++-- .../gcc.target/powerpc/fold-vec-extract-longlong.p8.c | 4 ++-- .../gcc.target/powerpc/fold-vec-extract-longlong.p9.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-extract-short.p7.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-extract-short.p8.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-extract-short.p9.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-insert-char-p8.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-insert-char-p9.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-insert-double.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-insert-float-p8.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-insert-float-p9.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-insert-int-p8.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-insert-int-p9.c | 4 ++-- gcc/testsuite/gcc.target/powerpc/fold-vec-insert-longlong.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-insert-short-p8.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-insert-short-p9.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-select-double.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-select-float.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-splats-int.c | 2 +- gcc/testsuite/gcc.target/powerpc/fold-vec-splats-longlong.c | 2 +- 31 files changed, 39 insertions(+), 37 deletions(-) diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p7.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p7.c index 8f6d369961f..42599c214e4 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p7.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p7.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_extract() with char inputs produce the right code with a power7 (BE) target. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-options "-mdejagnu-cpu=power7 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p8.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p8.c index f3fea467a5b..f3b9556b2e6 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p8.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p8.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_extract() with char inputs produce the right code with a P8 (LE or BE) target. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p9.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p9.c index ff07c8862e8..ff03c9a722b 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p9.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-char.p9.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_extract() with char inputs produce the right code with a P9 (LE) target. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O2 " } */ @@ -12,7 +12,7 @@ /* { dg-final { scan-assembler-times "stxv" 6 { target ilp32 } } } */ /* { dg-final { scan-assembler-times "lbz" 6 { target ilp32 } } } */ -/* { dg-final { scan-assembler-times "addi" 6 { target ilp32 } } } */ +/* { dg-final { scan-assembler-times "addi" 3 { target ilp32 } } } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-double.p7.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-double.p7.c index 26fe343a2d7..cbf6cffbeba 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-double.p7.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-double.p7.c @@ -1,9 +1,10 @@ /* Verify that overloaded built-ins for vec_extract() with double inputs produce the right code. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_altivec_ok } */ -/* { dg-options "-mdejagnu-cpu=power7 -O2 -mbig-endian" } */ +/* { dg-options "-mdejagnu-cpu=power7 -O2" } */ +/* { dg-additional-options "-mbig-endian" { target powerpc*-*-linux* } } */ // targeting P7 (BE), 2 tests. // P7 constants: xxpermdi diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-double.p8.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-double.p8.c index 188a1d26b20..2b8dbb0182a 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-double.p8.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-double.p8.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_extract() with double inputs produce the right code with a P8 (LE or BE) target. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-float.p7.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-float.p7.c index fa2dbb3a7d2..c9abb6c1f35 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-float.p7.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-float.p7.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_extract() with float inputs produce the right code with a P7 (BE) target. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-options "-mdejagnu-cpu=power7 -O2 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-float.p8.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-float.p8.c index 815f9b58a40..68eeeede4b3 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-float.p8.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-float.p8.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_extract() with float inputs produce the right code with a P8 (LE or BE) target. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-float.p9.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-float.p9.c index d078e8ac545..1acd477ebd6 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-float.p9.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-float.p9.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_extract() with float inputs produce the right code. */ -/* { dg-do compile { target { powerpc*-*-linux* && le } } } */ +/* { dg-do compile { target lp64 } } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O2 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-int.p7.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-int.p7.c index 228588178ba..418762e3948 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-int.p7.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-int.p7.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_extract() with int inputs produce the right code with a P7 (BE) target. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-options "-mdejagnu-cpu=power7 -O2 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-int.p8.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-int.p8.c index 83ce4ee0829..d1e3b62373f 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-int.p8.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-int.p8.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_extract() with int inputs produce the right code with a P8 (LE or BE) target. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-int.p9.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-int.p9.c index 018780391d1..868b673cdaf 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-int.p9.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-int.p9.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_extract() with int inputs produce the right code with a P9 (LE) target. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O2 " } */ @@ -18,7 +18,7 @@ /* { dg-final { scan-assembler-times {\madd\M} 3 { target ilp32 } } } */ /* { dg-final { scan-assembler-times {\mstxv\M} 6 { target ilp32 } } } */ /* { dg-final { scan-assembler-times {\mlwz\M} 6 { target ilp32 } } } */ -/* { dg-final { scan-assembler-times {\maddi\M} 6 { target ilp32 } } } */ +/* { dg-final { scan-assembler-times {\maddi\M} 3 { target ilp32 } } } */ #include diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-longlong.p7.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-longlong.p7.c index 3fa9cab3e65..033d21c9a43 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-longlong.p7.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-longlong.p7.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_extract() with long long inputs produce the right code with a P8 (LE or BE) target. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-options "-mdejagnu-cpu=power7 -O2" } */ @@ -21,7 +21,8 @@ /* { dg-final { scan-assembler-times {\mli\M} 3 { target lp64 } } } */ /* -m32 target with constant test uses (+2)li where the -m64 has an ld */ /* { dg-final { scan-assembler-times {\mli\M} 5 { target ilp32 } } } */ -/* { dg-final { scan-assembler-times {\maddi\M} 6 } } */ +/* { dg-final { scan-assembler-times {\maddi\M} 6 { target lp64 } } } */ +/* { dg-final { scan-assembler-times {\maddi\M} 4 { target ilp32 } } } */ /* { dg-final { scan-assembler-times {\mstxvd2x\M|\mstvx\M} 3 } } */ /* { dg-final { scan-assembler-times {\mrldic\M|\mrlwinm\M} 3 } } */ /* { dg-final { scan-assembler-times {\mldx\M} 3 { target lp64 } } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-longlong.p8.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-longlong.p8.c index 56746989f74..0b624d262e1 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-longlong.p8.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-longlong.p8.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_extract() with long long inputs produce the right code with a P8 (LE or BE) target. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O2" } */ @@ -17,7 +17,7 @@ /* { dg-final { scan-assembler-times {\mstxvd2x\M|\mstxvw4x\M} 4 { target ilp32 } } } */ /* { dg-final { scan-assembler-times {\madd\M} 3 { target ilp32 } } } */ /* { dg-final { scan-assembler-times {\mlwz\M} 11 { target ilp32 } } } */ -/* { dg-final { scan-assembler-times {\maddi\M} 6 { target ilp32 } } } */ +/* { dg-final { scan-assembler-times {\maddi\M} 4 { target ilp32 } } } */ /* { dg-final { scan-assembler-times {\mmfvsrd\M} 6 { target lp64 } } } */ /* { dg-final { scan-assembler-times {\mmtvsrd\M} 3 { target lp64 } } } */ /* { dg-final { scan-assembler-times {\mxxpermdi\M} 3 { target le } } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-longlong.p9.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-longlong.p9.c index c98c0da19ca..e7e1c564802 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-longlong.p9.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-longlong.p9.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_extract() with long long inputs produce the right code for a P9 (LE) target. */ -/* { dg-do compile { target { powerpc*-*-linux* && le } } } */ +/* { dg-do compile { target lp64 } } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-short.p7.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-short.p7.c index 8616e7b11ad..46e943faa6a 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-short.p7.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-short.p7.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_extract() with short inputs produce the right code for a P7 (BE) target. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-options "-mdejagnu-cpu=power7 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-short.p8.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-short.p8.c index e749a2211dd..00685aca136 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-short.p8.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-short.p8.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_extract() with short inputs produce the right results with a P8 (LE or BE) target. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-short.p9.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-short.p9.c index 09783343d21..5651986bd0c 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-short.p9.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-extract-short.p9.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_extract() with short inputs produce the right code for a P9 (LE) target. */ -/* { dg-do compile { target { powerpc*-*-linux* && le } } } */ +/* { dg-do compile { target lp64 } } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-mdejagnu-cpu=power9 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-char-p8.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-char-p8.c index b13c8ca19c7..39fd4df6d42 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-char-p8.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-char-p8.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_insert () with char inputs produce the right codegen. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power8" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-char-p9.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-char-p9.c index 16432289d68..ae1daada4c0 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-char-p9.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-char-p9.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_insert () with char inputs produce the right codegen. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power9" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-double.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-double.c index 435d28d5420..120579cba23 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-double.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-double.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_insert with double inputs produce the right codegen. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-options "-mvsx -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-float-p8.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-float-p8.c index 7682aea8165..76039bc45f5 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-float-p8.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-float-p8.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_insert with float inputs produce the right codegen. Power8 variant. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power8" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-float-p9.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-float-p9.c index 93c263e04da..3819fe67375 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-float-p9.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-float-p9.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_insert with float inputs produce the right codegen. Power9 variant. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power9" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-int-p8.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-int-p8.c index 4a3b1ae6fc1..0f2bdd71d60 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-int-p8.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-int-p8.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_insert() with int inputs produce the right codegen. Power8 variant. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power8" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-int-p9.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-int-p9.c index 5ba5d53f276..81ac1f1a00a 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-int-p9.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-int-p9.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_insert() with int inputs produce the right codegen. Power9 variant. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power9" } */ @@ -59,7 +59,7 @@ testui2_cst(unsigned int x, vector unsigned int v) /* { dg-final { scan-assembler-times {\mxxinsertw\M} 4 { target lp64 } } } */ -/* { dg-final { scan-assembler-times {\maddi\M} 12 { target ilp32 } } } */ +/* { dg-final { scan-assembler-times {\maddi\M} 8 { target ilp32 } } } */ /* { dg-final { scan-assembler-times {\mstw\M} 8 { target ilp32 } } } */ /* { dg-final { scan-assembler-times {\mlxv\M} 8 { target ilp32 } } } */ /* { dg-final { scan-assembler-times {\mlvewx\M} 4 { target ilp32 } } } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-longlong.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-longlong.c index 337b38fb7d3..e9698986788 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-longlong.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-longlong.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_insert() with long long inputs produce the right codegen. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power8" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-short-p8.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-short-p8.c index 3ed40043095..0a73db7120c 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-short-p8.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-short-p8.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_insert() with short inputs produce the right codegen. Power8 variant. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power8" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-short-p9.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-short-p9.c index f09fd21691c..0f3504258aa 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-short-p9.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-insert-short-p9.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_insert() with short inputs produce the right codegen. Power9 variant. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p9vector_ok } */ /* { dg-options "-O2 -mdejagnu-cpu=power9" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-select-double.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-select-double.c index 7de7abcfc72..bb7dce10f01 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-select-double.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-select-double.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_sel with double inputs for VSX produce the right code. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_p8vector_ok } */ /* { dg-options "-mdejagnu-cpu=power8 -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-select-float.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-select-float.c index cc37eb59724..1656fbff2ca 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-select-float.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-select-float.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_sel with float inputs for VSX produce the right code. */ -/* { dg-do compile { target { powerpc*-*-linux* } } } */ +/* { dg-do compile } */ /* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-options "-maltivec -O2" } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-splats-int.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-splats-int.c index 01b95c5a0ec..dff0f559599 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-splats-int.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-splats-int.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_splat with int inputs produce the right code. */ -/* { dg-do compile { target { powerpc*-*-linux* && lp64 } } } */ +/* { dg-do compile { target lp64 } } */ /* { dg-require-effective-target powerpc_altivec_ok } */ /* { dg-options "-maltivec -O2 " } */ diff --git a/gcc/testsuite/gcc.target/powerpc/fold-vec-splats-longlong.c b/gcc/testsuite/gcc.target/powerpc/fold-vec-splats-longlong.c index 2dbf48eca15..242565017fa 100644 --- a/gcc/testsuite/gcc.target/powerpc/fold-vec-splats-longlong.c +++ b/gcc/testsuite/gcc.target/powerpc/fold-vec-splats-longlong.c @@ -1,7 +1,7 @@ /* Verify that overloaded built-ins for vec_splat with long long inputs produce the right code. */ -/* { dg-do compile { target { powerpc*-*-linux* && lp64 } } } */ +/* { dg-do compile { target lp64 } } */ /* { dg-require-effective-target powerpc_vsx_ok } */ /* { dg-options "-mvsx -O2" } */ -- 2.30.2