Add "__RTL" to cc1
[official-gcc.git] / gcc / testsuite / gcc.dg / rtl / test.c
blobebb8aefa0f9dda2bbb2a0e1eaf2428b8b0944fda
1 int test_1 (int i, int j, int k)
3 if (i < j)
4 return k + 4;
5 else
6 return -k;
9 /* Example showing:
10 - data structure
11 - loop
12 - call to "abort". */
14 struct foo
16 int count;
17 float *data;
20 float test_2 (struct foo *lhs, struct foo *rhs)
22 float result = 0.0f;
24 if (lhs->count != rhs->count)
25 __builtin_abort ();
27 for (int i = 0; i < lhs->count; i++)
28 result += lhs->data[i] * rhs->data[i];
30 return result;