| 1 |
/* { dg-require-effective-target untyped_assembly } */ |
| 2 |
/* { dg-add-options stack_size } */ |
| 3 |
/* { dg-additional-options "-std=gnu89" } */ |
| 4 |
|
| 5 |
#ifndef STACK_SIZE |
| 6 |
#define VLEN 2055 |
| 7 |
#else |
| 8 |
#define VLEN ((STACK_SIZE/16) - 1) |
| 9 |
#endif |
| 10 |
main () |
| 11 |
{ |
| 12 |
long dx[VLEN+1]; |
| 13 |
long dy[VLEN+1]; |
| 14 |
long s1[VLEN]; |
| 15 |
int cyx, cyy; |
| 16 |
int i; |
| 17 |
long size; |
| 18 |
|
| 19 |
for (;;) |
| 20 |
{ |
| 21 |
size = VLEN; |
| 22 |
mpn_random2 (s1, size); |
| 23 |
|
| 24 |
for (i = 0; i < 1; i++) |
| 25 |
; |
| 26 |
|
| 27 |
dy[size] = 0x12345678; |
| 28 |
|
| 29 |
for (i = 0; i < 1; i++) |
| 30 |
cyy = mpn_mul_1 (dy, s1, size); |
| 31 |
|
| 32 |
if (cyx != cyy || mpn_cmp (dx, dy, size + 1) != 0 || dx[size] != 0x12345678) |
| 33 |
{ |
| 34 |
foo ("", 8, cyy); mpn_print (dy, size); |
| 35 |
} |
| 36 |
exxit(); |
| 37 |
} |
| 38 |
} |
| 39 |
|
| 40 |
foo (){} |
| 41 |
mpn_mul_1(){} |
| 42 |
mpn_print (){} |
| 43 |
mpn_random2(){} |
| 44 |
mpn_cmp(){} |
| 45 |
exxit(){exit(0);} |