aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/sh/pr49880-4.c
blob: 5b5af1e40141f5cfef354b2f95de2889ea6cf6e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/* Check that the option -mdiv=call-fp does not produce calls to the
   library function that uses FPU to implement integer division if FPU insns
   are not supported or are disabled.  */
/* { dg-do compile }  */
/* { dg-options "-mdiv=call-fp" }  */
/* { dg-skip-if "" { "sh*-*-*" } { "*"} { "-m1" "-m2" "-m3" "-m4al" "*nofpu" "-m4-340*" "-m4-400*" "-m4-500*" } }  */
/* { dg-final { scan-assembler-not "sdivsi3_i4\n|udivsi3_i4\n" } }  */

int
test00 (int a, int b)
{
  return a / b;
}

unsigned int
test01 (unsigned int a, unsigned b)
{
  return a / b;
}