]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: negated triplets need blank separators
authorAlexandre Oliva <oliva@adacore.com>
Wed, 25 Mar 2026 18:05:14 +0000 (15:05 -0300)
committerAlexandre Oliva <oliva@gnu.org>
Sat, 28 Mar 2026 03:12:47 +0000 (00:12 -0300)
!a-b-c is not the same as ! a-b-c.  In !a-b-c, the '!' is part of the
triplet that istarget attempts to match.  Fix all occurrences, except
for gcc.dg/vect/vect-93.c, that is taken care of separately.

for  gcc/testsuite/ChangeLog

* gcc.dg/debug/btf/btf-variables-5.c: Separate ! from triplet.
* gcc.dg/hoist-register-pressure-1.c: Likewise.
* gcc.dg/hoist-register-pressure-2.c: Likewise.
* gcc.dg/hoist-register-pressure-3.c: Likewise.
* gcc.target/powerpc/safe-indirect-jump-1.c: Likewise.
* gfortran.dg/gomp/declare-variant-14.f90: Likewise.

gcc/testsuite/gcc.dg/debug/btf/btf-variables-5.c
gcc/testsuite/gcc.dg/hoist-register-pressure-1.c
gcc/testsuite/gcc.dg/hoist-register-pressure-2.c
gcc/testsuite/gcc.dg/hoist-register-pressure-3.c
gcc/testsuite/gcc.target/powerpc/safe-indirect-jump-1.c
gcc/testsuite/gfortran.dg/gomp/declare-variant-14.f90

index a08130cfc072540e0a3b38e9670b8f8dec393fb3..1d8d7778d273d6a0811758dc33e5c7b7dbbc6613 100644 (file)
@@ -14,7 +14,7 @@
 /* Expect 2 array types, one of which is unsized.  For BPF target, -gprune-btf
    is the default and will remove the unsized array type.  */
 /* { dg-final { scan-assembler-times "\[\t \]0x4\[\t \]+\[^\n\]*bta_nelems" 1 } } */
-/* { dg-final { scan-assembler-times "\[\t \]0\[\t \]+\[^\n\]*bta_nelems" 1 { target { !bpf-*-* } } } } */
+/* { dg-final { scan-assembler-times "\[\t \]0\[\t \]+\[^\n\]*bta_nelems" 1 { target { ! bpf-*-* } } } } */
 /* { dg-final { scan-assembler-times "\[\t \]0\[\t \]+\[^\n\]*bta_nelems" 0 { target { bpf-*-* } } } } */
 
 extern const char FOO[];
index 6e566da4dba4ba78a57f2cf4a014611323994f48..516357d3c9201602eb5ed0fd906841caf8ea5585 100644 (file)
@@ -3,7 +3,7 @@
    be assigned without clobbering cc.  For a PLUS rtx on S/390 this
    requires a load address instruction which is fine on 64 bit but
    cannot be used on 31 bit since it does a 31 bit add only.  */
-/* { dg-final { scan-rtl-dump "PRE/HOIST: end of bb .* copying expression" "hoist" { target { { !s390*-*-* || lp64 } && nonpic } } } } */
+/* { dg-final { scan-rtl-dump "PRE/HOIST: end of bb .* copying expression" "hoist" { target { { { ! s390*-*-* } || lp64 } && nonpic } } } } */
 
 #define BUF 100
 long a[BUF];
index 05ffd8d93f0abcb21ac192e2b6308a53069acced..2e1283233788bb26d2233a29aa6b656f289c79b1 100644 (file)
@@ -3,7 +3,7 @@
    be assigned without clobbering cc.  For a PLUS rtx on S/390 this
    requires a load address instruction which is fine on 64 bit but
    cannot be used on 31 bit since it does a 31 bit add only.  */
-/* { dg-final { scan-rtl-dump "PRE/HOIST: end of bb .* copying expression" "hoist" { target { !s390*-*-* || lp64 } } } } */
+/* { dg-final { scan-rtl-dump "PRE/HOIST: end of bb .* copying expression" "hoist" { target { { ! s390*-*-* } || lp64 } } } } */
 
 #define BUF 100
 long a[BUF];
index f274fa133454467c34b6f9e1e294a524941a231e..0a705edd79cf38157c454b159c37858bf193f4b1 100644 (file)
@@ -3,7 +3,7 @@
    be assigned without clobbering cc.  For a PLUS rtx on S/390 this
    requires a load address instruction which is fine on 64 bit but
    cannot be used on 31 bit since it does a 31 bit add only.  */
-/* { dg-final { scan-rtl-dump "PRE/HOIST: end of bb .* copying expression" "hoist" { target { !s390*-*-* || lp64 } } } } */
+/* { dg-final { scan-rtl-dump "PRE/HOIST: end of bb .* copying expression" "hoist" { target { { ! s390*-*-* } || lp64 } } } } */
 
 #define BUF 100
 long a[BUF];
index b9ad8c1dd36a6c9e1f4bd9b5a31d60afc15aac0e..adecb3cd67233bbaa52d033557089c13bb81a19a 100644 (file)
@@ -18,5 +18,5 @@ int bar ()
 /* { dg-final { scan-assembler "beqctrl-" { target { lp64 || { powerpc*-*-aix* } } } } } */
 
 /* The other ABIs do allow a sibcall.  */
-/* { dg-final { scan-assembler "beqctr-" { target { ilp32 && !powerpc*-*-aix* } } } } */
-/* { dg-final { scan-assembler {b \$} { target { ilp32 && !powerpc*-*-aix* } } } } */
+/* { dg-final { scan-assembler "beqctr-" { target { ilp32 && { ! powerpc*-*-aix* } } } } } */
+/* { dg-final { scan-assembler {b \$} { target { ilp32 && { ! powerpc*-*-aix* } } } } } */
index 71b66cb5d0869711d52490ba615f105d5193902d..0ac172d571c7fd11eaffc467c56498d8e7728ca3 100644 (file)
@@ -36,7 +36,7 @@ contains
     integer :: a, b
 
     ! At gimplification time, we can't decide yet which function to call.
-    ! { dg-final { scan-tree-dump-times "f04 \\\(x" 2 "gimple" { target { !aarch64*-*-* } } } }
+    ! { dg-final { scan-tree-dump-times "f04 \\\(x" 2 "gimple" { target { ! aarch64*-*-* } } } }
     ! After simd clones are created, the original non-clone test1 shall
     ! call f03 (score 6), the sse2/avx/avx2 clones too, but avx512f clones
     ! shall call f01 with score 8.