aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/sh/pr49880-5.c
blob: bff9f331f9a20aba3d98146c352d3e79e92ea377 (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 results in the corresponding library
   function calls on targets that have a double precision FPU.  */
/* { dg-do compile }  */
/* { dg-options "-mdiv=call-fp" }  */
/* { dg-skip-if "" { "sh*-*-*" } { "*"} { "-m2a" "-m4" "-m4a" "*single-only" } }  */
/* { dg-final { scan-assembler "sdivsi3_i4\n" } }  */
/* { dg-final { scan-assembler "udivsi3_i4\n" } }  */

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

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