Create embedded-5_0-branch branch for development on ARM embedded cores.
[official-gcc.git] / embedded-5_0-branch / gcc / testsuite / gcc.target / sh / pr49880-4.c
blob5b5af1e40141f5cfef354b2f95de2889ea6cf6e9
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 } */
5 /* { dg-options "-mdiv=call-fp" } */
6 /* { dg-skip-if "" { "sh*-*-*" } { "*"} { "-m1" "-m2" "-m3" "-m4al" "*nofpu" "-m4-340*" "-m4-400*" "-m4-500*" } } */
7 /* { dg-final { scan-assembler-not "sdivsi3_i4\n|udivsi3_i4\n" } } */
9 int
10 test00 (int a, int b)
12 return a / b;
15 unsigned int
16 test01 (unsigned int a, unsigned b)
18 return a / b;