gcc/testsuite/gcc.target/sh/pr49880-2.c
raw| 1 | /* Check that the option -mdiv=call-fp works. */ |
| 2 | /* { dg-do link } */ |
| 3 | /* { dg-options "-mdiv=call-fp" } */ |
| 4 | |
| 5 | int |
| 6 | test00 (int a, int b) |
| 7 | { |
| 8 | return a / b; |
| 9 | } |
| 10 | |
| 11 | unsigned int |
| 12 | test01 (unsigned int a, unsigned b) |
| 13 | { |
| 14 | return a / b; |
| 15 | } |
| 16 | |
| 17 | int |
| 18 | main (int argc, char** argv) |
| 19 | { |
| 20 | return test00 (argc, 123) + test01 (argc, 123); |
| 21 | } |