1 /* Check that the option -mdiv=call-fp does not produce calls to the
2 library function that uses FPU to implement integer division if FPU insns
3 are not supported or are disabled. */
4 /* { dg-do compile { target { no_fpu } } } */
5 /* { dg-options "-mdiv=call-fp" } */
6 /* { dg-final { scan-assembler-not "sdivsi3_i4\n|udivsi3_i4\n" } } */
7
8 int
9 test00 (int a, int b)
10 {
11 return a / b;
12 }
13
14 unsigned int
15 test01 (unsigned int a, unsigned b)
16 {
17 return a / b;
18 }