aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.9/gcc/testsuite/gcc.target/i386/pr49715-1.c
blob: d959f9e379c5500100183a1524fe241ca93b6899 (plain)
1
2
3
4
5
6
7
8
9
/* { dg-do compile } */
/* { dg-options "-O2 -msse -mfpmath=sse" } */

float func(unsigned x)
{
  return (x & 0xfffff) * 0.01f;
}

/* { dg-final { scan-assembler-times "cvtsi2ss" 1 } } */