PR inline-asm/84742
[official-gcc.git] / gcc / testsuite / gcc.c-torture / execute / 921202-1.c
blob8c6b8c79fc548756613a19c49e2ed7bdbe80cd40
1 /* { dg-require-effective-target untyped_assembly } */
2 /* { dg-add-options stack_size } */
4 #ifndef STACK_SIZE
5 #define VLEN 2055
6 #else
7 #define VLEN ((STACK_SIZE/16) - 1)
8 #endif
9 main ()
11 long dx[VLEN+1];
12 long dy[VLEN+1];
13 long s1[VLEN];
14 int cyx, cyy;
15 int i;
16 long size;
18 for (;;)
20 size = VLEN;
21 mpn_random2 (s1, size);
23 for (i = 0; i < 1; i++)
26 dy[size] = 0x12345678;
28 for (i = 0; i < 1; i++)
29 cyy = mpn_mul_1 (dy, s1, size);
31 if (cyx != cyy || mpn_cmp (dx, dy, size + 1) != 0 || dx[size] != 0x12345678)
33 foo ("", 8, cyy); mpn_print (dy, size);
35 exxit();
39 foo (){}
40 mpn_mul_1(){}
41 mpn_print (){}
42 mpn_random2(){}
43 mpn_cmp(){}
44 exxit(){exit(0);}