]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ssa-fre-4.c: Enable for all targets and adjust scan match
authorH.J. Lu <hjl.tools@gmail.com>
Sun, 10 Nov 2024 09:55:20 +0000 (17:55 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Sun, 27 Apr 2025 02:36:56 +0000 (10:36 +0800)
Since the C frontend no longer promotes char argument, enable ssa-fre-4.c
for all targets and adjust scan match.

PR middle-end/112877
* gcc.dg/tree-ssa/ssa-fre-4.c: Enable for all targets and adjust
scan match.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
gcc/testsuite/gcc.dg/tree-ssa/ssa-fre-4.c

index 5a7588febaa35c8a62055bd86d9dd211d8d4ca07..246fea3a4b95b5005b4e64830293dd62bac9a233 100644 (file)
@@ -1,6 +1,4 @@
-/* If the target returns false for TARGET_PROMOTE_PROTOTYPES, then there
-   will be no casts for FRE to eliminate and the test will fail.  */
-/* { dg-do compile { target i?86-*-* x86_64-*-* hppa*-*-* m68k*-*-* } } */
+/* { dg-do compile } */
 /* { dg-options "-O -fno-tree-ccp -fno-tree-forwprop -fdump-tree-fre1-details" } */
 
 /* From PR21608.  */
@@ -11,4 +9,4 @@ char bar(char f)
         return wrap(f);
 }
 
-/* { dg-final { scan-tree-dump "Replaced \\\(char\\\) .*with " "fre1" } } */
+/* { dg-final { scan-tree-dump-not " = \\\(\[^)\]*\\\)" "fre1" } } */