rs6000.md (floor<mode>2): Add support for IEEE 128-bit round to integer instructions.
[official-gcc.git] / gcc / testsuite / gcc.target / bfin / l2.c
blob56f64cc82b485201abde2c1e1486ec0eca4d3fc0
1 /* { dg-do run { target bfin-*-linux-uclibc } } */
2 /* { dg-bfin-processors bf544 bf547 bf548 bf549 bf561} */
4 #if defined(__ADSPBF544__)
5 #define L2_START 0xFEB00000
6 #define L2_LENGTH 0x10000
7 #else
8 #define L2_START 0xFEB00000
9 #define L2_LENGTH 0x20000
10 #endif
12 int n __attribute__ ((l2));
14 int foo (int i) __attribute__ ((l2));
16 int foo (int a)
18 return a + 1;
21 int main ()
23 int r;
24 unsigned long *p;
26 p = (unsigned long *) foo;
27 if (*p < L2_START || *p >= L2_START + L2_LENGTH)
28 return 1;
30 p = (unsigned long *) &n;
31 if ((unsigned long) p < L2_START || (unsigned long) p >= L2_START + L2_LENGTH)
32 return 2;
34 if (foo (0) != 1)
35 return 3;
37 return 0;