1 /* Check that the option -mdiv=call-fp results in the corresponding library
2 function calls on targets that have a double precision FPU. */
3 /* { dg-do compile { target { double_fpu || use_single_only_fpu } } } */
4 /* { dg-options "-mdiv=call-fp" } */
5 /* { dg-final { scan-assembler "sdivsi3_i4\n" } } */
6 /* { dg-final { scan-assembler "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 }