Skip to contentSkip to conversation

target-ppc: add support for extended mtfsf/mtfsfi forms

PATCH New Khem Raj 1 participant 1 message Aug 15, 2013

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH v2 10/10 target-ppc: add support for extended mtfsf/mtfsfi forms

Hi

I am seeing a regression with 1.5.0 release where the following program

#include <stdio.h>
#include <math.h>

int main(int argc, char * argv[])
{
double f = 1234.67;
printf("floor(%f) = %f\n", f, floor(f));
return 0;
}

when compiled without any -O options which means it calls the glitch's floor() function which uses mtfsfi results in

floor(1234.670000) = 1235.000000

where as expected result is

floor(1234.670000) = 1234.000000

Git bisect suggests indicates this patch where it started to regress

The machine emulated is mac99 which is pre ISA 2.05

Same program (statically linked) seems to work fine on real hardware, therefore it seems to me that its a Qemu problem

Let me know if you need more information.

Thanks
-Khem