qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 10/10] target-ppc: add support for extended mtfsf


From: Khem Raj
Subject: [Qemu-devel] [PATCH v2 10/10] target-ppc: add support for extended mtfsf/mtfsfi forms
Date: Wed, 14 Aug 2013 22:27:42 -0700

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]