]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
testsuite: Update guality xfails for aarch64*-*-*
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 3 Feb 2022 10:43:59 +0000 (10:43 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 3 Feb 2022 10:43:59 +0000 (10:43 +0000)
Following on from GCC 11 patch g:f31ddad8ac8, this one gives clean
guality.exp test results for aarch64-linux-gnu with modern gdb
(this time gdb 11.2).

The justification is the same as previously:

------
For people using older gdbs, it will trade one set of noisy results for
another set.  I still think it's better to have the xfails based on
one “clean” and “modern” run rather than have FAILs and XPASSes for
all runs.

It's hard to tell which of these results are aarch64-specific and
which aren't.  If other target maintainers want to do something similar,
and are prepared to assume the same gdb version, then it should become
clearer over time which ones are target-specific and which aren't.

There are no new skips here, so changes in test results will still
show up as XPASSes.

I've not analysed the failures or filed PRs for them.  In some
ways the guality directory itself seems like the best place to
start looking for xfails, if someone's interested in working
in this area.
------

gcc/testsuite/
* gcc.dg/guality/ipa-sra-1.c: Update aarch64*-*-* xfails.
* gcc.dg/guality/pr54519-1.c: Likewise.
* gcc.dg/guality/pr54519-3.c: Likewise.

gcc/testsuite/gcc.dg/guality/ipa-sra-1.c
gcc/testsuite/gcc.dg/guality/pr54519-1.c
gcc/testsuite/gcc.dg/guality/pr54519-3.c

index 5434b3d7665acb1f883aeb7ef9788e179ad422e4..9ef4eac93a7fd707be66519231407fba49334a6e 100644 (file)
@@ -12,7 +12,7 @@ static int __attribute__((noinline))
 bar (int i, int k)
 {
   asm ("" : "+r" (i));
-  use (i);             /* { dg-final { gdb-test . "k" "3" { xfail *-*-* } } } */
+  use (i);             /* { dg-final { gdb-test . "k" "3" { xfail { ! { aarch64*-*-* && { any-opts "-O0" "-O1" "-Og" } } } } } } */
   return 6;
 }
 
index 81703eb1744a6cf39d2d948d3a78a847e70b444c..5880d9b4f57c26e85e427e8d8fec1f288a12c784 100644 (file)
@@ -18,9 +18,9 @@ fn2 (int x, int y, int z)
       fn1 (x);         /* { dg-final { gdb-test .+2 "x" "36" } } */
       if (x == 36)     /* { dg-final { gdb-test .+1 "y" "25" { xfail { aarch64*-*-* && { any-opts "-flto" } } } } } */
        fn1 (x);        /* { dg-final { gdb-test . "z" "6" { xfail { aarch64*-*-* && { any-opts "-flto" } } } } } */
-      fn1 (x);         /* { dg-final { gdb-test .+2 "x" "98" } } */
-      if (x == 98)     /* { dg-final { gdb-test .+1 "y" "117" { xfail { aarch64*-*-* && { any-opts "-flto" } } } } } */
-       fn1 (x);        /* { dg-final { gdb-test . "z" "8" { xfail { aarch64*-*-* && { any-opts "-flto" } } } } } */
+      fn1 (x);         /* { dg-final { gdb-test .+2 "x" "98" { xfail { aarch64*-*-* && { any-opts "-Os" } } } } } */
+      if (x == 98)     /* { dg-final { gdb-test .+1 "y" "117" { xfail { aarch64*-*-* && { any-opts "-Os" "-flto" } } } } } */
+       fn1 (x);        /* { dg-final { gdb-test . "z" "8" { xfail { aarch64*-*-* && { any-opts "-Os" "-flto" } } } } } */
       fn1 (x);
       fn1 (x + a);
     }
index fabab963d7222263f3721eb678e7a75dd21d9cec..9c18993e7a9d7dd31db9e3119e6241e72171e393 100644 (file)
@@ -18,9 +18,9 @@ fn2 (int x, int y, int z)
       fn1 (x);         /* { dg-final { gdb-test .+2 "x" "36" } } */
       if (x == 36)     /* { dg-final { gdb-test .+1 "y" "25" { xfail { aarch64*-*-* && { any-opts "-flto" } } } } } */
        fn1 (x);        /* { dg-final { gdb-test . "z" "6" { xfail { aarch64*-*-* && { any-opts "-flto" } } } } } */
-      fn1 (x);         /* { dg-final { gdb-test .+2 "x" "98" } } */
-      if (x == 98)     /* { dg-final { gdb-test .+1 "y" "117" { xfail { aarch64*-*-* && { any-opts "-flto" } } } } } */
-       fn1 (x);        /* { dg-final { gdb-test . "z" "8" { xfail { aarch64*-*-* && { any-opts "-flto" } } } } } */
+      fn1 (x);         /* { dg-final { gdb-test .+2 "x" "98" { xfail { aarch64*-*-* && { any-opts "-Os" } } } } } */
+      if (x == 98)     /* { dg-final { gdb-test .+1 "y" "117" { xfail { aarch64*-*-* && { any-opts "-Os" "-flto" } } } } } */
+       fn1 (x);        /* { dg-final { gdb-test . "z" "8" { xfail { aarch64*-*-* && { any-opts "-Os" "-flto" } } } } } */
       fn1 (x);
       fn1 (x + a);
     }