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] Another testcase


Whee.  The fix for this testcase is testing right now.


	* gcc.dg/tree-ssa/20030807-1.c: New test.

Index: gcc.dg/tree-ssa/20030807-1.c
===================================================================
RCS file: gcc.dg/tree-ssa/20030807-1.c
diff -N gcc.dg/tree-ssa/20030807-1.c
*** /dev/null	1 Jan 1970 00:00:00 -0000
--- gcc.dg/tree-ssa/20030807-1.c	11 Aug 2003 18:12:05 -0000
***************
*** 0 ****
--- 1,41 ----
+ /* { dg-do compile */
+ /* { dg-options "-O1 -fdump-tree-ssa" } */
+     
+ struct rtx_def;
+ typedef struct rtx_def *rtx;
+ 
+ 
+ 
+ union rtunion_def
+ {
+   int rtint;
+ };
+ typedef union rtunion_def rtunion;
+ 
+ 
+ 
+ struct rtx_def
+ {
+   rtunion fld[1];
+ 
+ };
+ 
+ static int *uid_cuid;
+ static int max_uid_cuid;
+ 
+ static void
+ bar ()
+ {
+ 
+   rtx place = 0;
+ 
+   if (place->fld[0].rtint <= max_uid_cuid
+       && (place->fld[0].rtint > max_uid_cuid ? insn_cuid (place) :
+ 	  uid_cuid[place->fld[0].rtint]))
+     ;
+ }
+ 
+ /* There should be two IF conditionals.  */
+ /* { 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]