2018-02-09 Sebastian Perta <sebastian.perta@renesas.com>
[official-gcc.git] / gcc / testsuite / gcc.target / sh / pr49880-4.c
blob8819be0c72314e368d24537c8a4d845d8c1ba427
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" } } */
8 int
9 test00 (int a, int b)
11 return a / b;
14 unsigned int
15 test01 (unsigned int a, unsigned b)
17 return a / b;