[NDS32] Add intrinsic functions for TLB operation and data prefech.
[official-gcc.git] / gcc / testsuite / gcc.dg / pr51879-12.c
blob1aa490791bc224cbf25beeb44c5e7864d331c5d1
1 /* { dg-do compile } */
2 /* { dg-options "-O2 -ftree-tail-merge -fdump-tree-pre -fno-code-hoisting" } */
4 __attribute__((pure)) int bar (int);
5 __attribute__((pure)) int bar2 (int);
6 void baz (int);
8 int x, z;
10 void
11 foo (int y)
13 int a = 0;
14 if (y == 6)
16 a += bar (7);
17 a += bar2 (6);
19 else
21 a += bar2 (6);
22 a += bar (7);
24 baz (a);
27 /* { dg-final { scan-tree-dump-times "bar \\(" 1 "pre" { xfail *-*-* } } } */
28 /* { dg-final { scan-tree-dump-times "bar2 \\(" 1 "pre" { xfail *-*-* } } } */