1 # test calling into C with two
2 # large struct arguments (passed
7 function $alpha(l %p, w %l, l %n) {
11 %p1 =l phi @ini %p, @lop %p2
12 %l1 =w phi @ini %l, @lop %l2
28 %r0 =w call $alpha(l %p, w 65, l 16)
29 %r1 =w call $alpha(l %q, w 97, l 16)
30 %r2 =w call $fcb(:mem %p, w 1, w 2, w 3, w 4, w 5, w 6, w 7, w 8, w 9, :mem %q)
37 # typedef struct { char t[17]; } mem;
39 # void fcb(mem m, int i1, int i2, int i3, int i4, int i5, int i6, int i7, int i8, int i9, mem n) {
40 # printf("fcb: m = (mem){ t = \"%s\" }\n", m.t);
41 # printf(" n = (mem){ t = \"%s\" }\n", n.t);
42 # #define T(n) printf(" i%d = %d\n", n, i##n);
43 # T(1) T(2) T(3) T(4) T(5) T(6) T(7) T(8) T(9)
45 # int main() { test(); return 0; }
49 # fcb: m = (mem){ t = "ABCDEFGHIJKLMNOP" }
50 # n = (mem){ t = "abcdefghijklmnop" }