This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[tree-ssa] Improve tree-ssa test



This adds an additional check to one of the new tree-ssa tests to verify
that we kill a redundant load (we don't currently kill it, so expect it
to fail for a little while :-)

        * gcc.dg/tree-ssa/20030709-2.c: Also test that we eliminate
        the redundant load of ->fld[1].rtmem.
 

Index: gcc.dg/tree-ssa/20030709-2.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/testsuite/gcc.dg/tree-ssa/Attic/20030709-2.c,v
retrieving revision 1.1.2.1
diff -c -3 -p -r1.1.2.1 20030709-2.c
*** gcc.dg/tree-ssa/20030709-2.c	15 Jul 2003 19:24:51 -0000	1.1.2.1
--- gcc.dg/tree-ssa/20030709-2.c	16 Jul 2003 22:56:09 -0000
*************** get_alias_set (t)
*** 42,47 ****
--- 42,51 ----
     more than, then the dominator optimizations failed.  */
  /* { dg-final { scan-tree-dump-times "->decl\\.rtl" 1 "ssa"} } */
    
+ /* There should be precisely one load of .rtmem.  If there is
+    more than, then the dominator optimizations failed.  */
+ /* { dg-final { scan-tree-dump-times ".rtmem" 1 "ssa"} } */
+   
  /* There should be two IF statements.
  /* { dg-final { scan-tree-dump-times "if " 2 "ssa"} } */
  



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]