monitor: Fix file_completion() to check for stat() failure
[qemu/ar7.git] / tests / alpha / test-ovf.c
blob01c80e752584d48b2ad72d2f5a5c5f8e9ebaa79a
1 static long test_subqv (long a, long b)
3 long res;
5 asm ("subq/v %1,%2,%0"
6 : "=r" (res) : "r" (a), "r" (b));
7 return res;
9 static struct {
10 long (*func)(long, long);
11 long a;
12 long b;
13 long r;
14 } vectors[] =
16 {test_subqv, 0, 0x7d54000, 0xfffffffff82ac000L}
19 int main (void)
21 int i;
23 for (i = 0; i < sizeof (vectors)/sizeof(vectors[0]); i++)
24 if ((*vectors[i].func)(vectors[i].a, vectors[i].b) != vectors[i].r) {
25 write(1, "Failed\n", 7);
27 write(1, "OK\n", 3);
28 return 0;