1 /* { dg-do compile } */
2 /* { dg-options "-O1 -fdump-tree-dom3" } */
5 typedef struct rtx_def *rtx;
12 unsigned int unchanging:1;
15 static rtx current_sym_addr;
20 if (current_sym_addr->code == 42
22 rtx _rtx = current_sym_addr;
23 if (((_rtx)->code) != 42)
30 /* There should be precisely one load of ->code. If there is
31 more than, then the dominator optimizations failed. */
32 /* { dg-final { scan-tree-dump-times "->code" 1 "dom3"} } */
34 /* There should be two IF statements. One for 'current_sym_addr->code == 42'.
35 The other one for '(EXPR)->unchanging'. */
36 /* { dg-final { scan-tree-dump-times "if " 2 "dom3"} } */