]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Refine testcase for power10.
authorliuhongt <hongtao.liu@intel.com>
Thu, 6 Jun 2024 03:27:53 +0000 (11:27 +0800)
committerliuhongt <hongtao.liu@intel.com>
Thu, 6 Jun 2024 03:33:47 +0000 (11:33 +0800)
For power10, there're extra 3 REG_EQUIV notes with (fix:SI. to avoid
the failure. Check (fix:SI is from the pattern not NOTE.

gcc/testsuite/ChangeLog:

PR target/115365
* gcc.dg/pr100927.c: Don't scan fix:SI from the note.

gcc/testsuite/gcc.dg/pr100927.c

index ea0e627befa67799675c882a4242aed31dace9b7..8a7d69c3831162d5b49f006caed18802d02faf1a 100644 (file)
@@ -1,7 +1,7 @@
 /* { dg-do compile } */
 /* { dg-options "-O2 -ftrapping-math -fdump-tree-optimized -fdump-rtl-final" } */
 /* { dg-final { scan-tree-dump-times {(?n)= \(int\)} 3 "optimized" } }  */
-/* { dg-final { scan-rtl-dump-times {(?n)\(fix:SI} 3 "final" } }  */
+/* { dg-final { scan-rtl-dump-times {(?n)^[ \t]*\(fix:SI} 3 "final" } }  */
 
 int
 foo_ofr ()