gcc/testsuite/gcc.c-torture/execute/960830-1.c
raw| 1 | /* { dg-additional-options "-std=gnu89" } */ |
| 2 | |
| 3 | #ifdef __i386__ |
| 4 | f (rp) |
| 5 | unsigned int *rp; |
| 6 | { |
| 7 | __asm__ ("mull %3" : "=a" (rp[0]), "=d" (rp[1]) : "%0" (7), "rm" (7)); |
| 8 | } |
| 9 | |
| 10 | main () |
| 11 | { |
| 12 | unsigned int s[2]; |
| 13 | |
| 14 | f (s); |
| 15 | if (s[1] != 0 || s[0] != 49) |
| 16 | abort (); |
| 17 | exit (0); |
| 18 | } |
| 19 | #else |
| 20 | main () |
| 21 | { |
| 22 | exit (0); |
| 23 | } |
| 24 | #endif |