Mercurial > hg > CbC > CbC_gcc
view gcc/testsuite/gcc.target/sh/pr49880-5.c @ 145:1830386684a0
gcc-9.2.0
author | anatofuz |
---|---|
date | Thu, 13 Feb 2020 11:34:05 +0900 |
parents | 04ced10e8804 |
children |
line wrap: on
line source
/* 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 { target { double_fpu || use_single_only_fpu } } } */ /* { dg-options "-mdiv=call-fp" } */ /* { 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; }