summaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.target/mips/pr33635-1.c
blob: 78e761f71c5e638b2a26911fa826350f64f87679 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/* { dg-options "-mabi=64 -O2" } */

NOMIPS16 long double __powitf2 (long double x, int m)
{
  long double y = x;
  while (m >>= 1)
    {
      x = x * x;
      if (m % 2)
        y = y * x;
    }
  return y;
}