This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[tree-ssa] Another testcase
- From: law at redhat dot com
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 11 Aug 2003 12:13:23 -0600
- Subject: [tree-ssa] Another testcase
- Reply-to: law at redhat dot com
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"} } */
+
+