[NDS32] Add intrinsic functions for TLB operation and data prefech.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr56098-2.c
blobcd4bff2f4b9dbd65ec0f38fddb54ad73b3828a49
1 /* PR tree-optimization/56098 */
2 /* { dg-do compile } */
3 /* { dg-options "-O2 -fhoist-adjacent-loads -fdump-tree-optimized" } */
5 struct S { volatile int i; volatile int j; };
7 int
8 bar (struct S *x, int y)
10 int r;
11 if (y)
12 r = x->i;
13 else
14 r = x->j;
15 return r;
18 /* { dg-final { scan-tree-dump-not "r_\[0-9]* =.v. \[^\n\r]*;\[\n\r]* r_\[0-9]* =.v. " "optimized" } } */