qemu-devel
[Top][All Lists]
Advanced

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

[Qemu-devel] [Bug 1603734] Re: Hang in fsqrt


From: Peter Maydell
Subject: [Qemu-devel] [Bug 1603734] Re: Hang in fsqrt
Date: Fri, 12 Aug 2016 11:35:01 -0000

Thanks for this bug report. The problem here is that QEMU is not
correctly handling the obsolete "unnormal" 80-bit floating point format.
The Intel architecture reference says that this should be handled by
raising the invalid-input exception and returning the default NaN.

See also the discussion in the mailing list thread "Hang bug in 80-bit
float square root implementation", though the patch there is not the
correct fix for the bug.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1603734

Title:
  Hang in fsqrt

Status in QEMU:
  New

Bug description:
  At least qemu-i368 and qemu-x86_64 hang in floatx80_sqrt in versions
  2.6.0 and git (2.6.50) for some input values, likely due to an
  infinite loop at fpu/softfloat.c:6569.

  Steps to reproduce:
  1) Compile attached code: gcc -o test test.c -lm
  2) `qemu-i368 test` and `qemu-x86_64 test` will hang at 100% cpu

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1603734/+subscriptions



reply via email to

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