diff mbox series

Adjust testcase to avoid scan FIX in REG_EQUIV.

Message ID 20241015070717.783063-1-hongtao.liu@intel.com
State New
Headers show
Series Adjust testcase to avoid scan FIX in REG_EQUIV. | expand

Commit Message

Liu, Hongtao Oct. 15, 2024, 7:07 a.m. UTC
Also add hard_float target to avoid failed on arm-eabi, cortex-m0.

Verified on cross-compiler for powerpc64le-linux-gnu, sparc-sun-solaris2.11

Ready push to trunk.

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 | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/gcc/testsuite/gcc.dg/pr100927.c b/gcc/testsuite/gcc.dg/pr100927.c
index 8a7d69c3831..28a168d3518 100644
--- a/gcc/testsuite/gcc.dg/pr100927.c
+++ b/gcc/testsuite/gcc.dg/pr100927.c
@@ -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 ()