gcc/testsuite/gcc.target/i386/udivmod-5.c
raw| 1 | /* { dg-do compile } */ |
| 2 | /* { dg-options "-O2 -m8bit-idiv" } */ |
| 3 | |
| 4 | extern void foo (unsigned int, unsigned int, unsigned int, |
| 5 | unsigned int, unsigned int, unsigned int); |
| 6 | |
| 7 | void |
| 8 | bar (unsigned int x, unsigned int y) |
| 9 | { |
| 10 | foo (0, 0, 0, 0, x / y, x % y); |
| 11 | } |
| 12 | |
| 13 | /* { dg-final { scan-assembler-times "divb" 1 } } */ |
| 14 | /* { dg-final { scan-assembler-times "divl" 1 } } */ |