]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Adjust testcase to avoid scan FIX in REG_EQUIV.
authorliuhongt <hongtao.liu@intel.com>
Tue, 15 Oct 2024 03:17:20 +0000 (11:17 +0800)
committerliuhongt <hongtao.liu@intel.com>
Wed, 16 Oct 2024 01:43:49 +0000 (09:43 +0800)
Also add hard_float target to avoid failed on arm-eabi.

gcc/testsuite/ChangeLog:

PR testsuite/115365
* gcc.dg/pr100927.c: Adjust testcase to avoid scan FIX in REG_EQUIV.

gcc/testsuite/gcc.dg/pr100927.c

index 8a7d69c3831162d5b49f006caed18802d02faf1a..28a168d351848fdef7f400afdaa49f7ad31e0006 100644 (file)
@@ -1,7 +1,8 @@
 /* { dg-do compile } */
+/* { dg-require-effective-target hard_float } */
 /* { 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)^[ \t]*\(fix:SI} 3 "final" } }  */
+/* { dg-final { scan-rtl-dump-times {(?n)^(?!.*REG_EQUIV)(?=.*\(fix:SI)} 3 "final" } }  */
 
 int
 foo_ofr ()