Skip to content

target/sh4: misc FPU fixes and optimizations

Aurelien Jarno qemu-devel 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 2 repliesIn review
  2. v12 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5target/sh4: do not check for PR bit for fabs instructiontarget/sh4/helper.h target/sh4/op_helper.c target/sh4/translate.c+3 -240 replies
2/5target/sh4: fix FPU unorderered comparetarget/sh4/op_helper.c+8 -200 replies
3/5target/sh4: fix FPSCR cause vs flag inversiontarget/sh4/op_helper.c+10 -100 replies
4/5target/sh4: do not use a helper to implement fnegtarget/sh4/helper.h target/sh4/op_helper.c target/sh4/translate.c+2 -90 replies
5/5target/sh4: return result of fcmp using TCGtarget/sh4/helper.h target/sh4/op_helper.c target/sh4/translate.c+18 -160 replies

Reviews trailers per patch

None of the 5 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchRichard Henderson
SeriesR-b
1/5
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/5] target/sh4: misc FPU fixes and optimizations

This patchset should fix the bug#1701821 reported by Bruno Haible, which makes the gnulib testsuite to fail for single precision libm tests or for tests relying on unordered comparisons.

It also fixes an inversion of cause and flag bits in the FPSCR register, which is unrelated with the reported bug. It also improves a bit the fneg and fcmp instructions.

Aurelien Jarno (5):
target/sh4: do not check for PR bit for fabs instruction target/sh4: fix FPU unorderered compare target/sh4: fix FPSCR cause vs flag inversion target/sh4: do not use a helper to implement fneg target/sh4: return result of fcmp using TCG

 target/sh4/helper.h    | 11 +++-----
 target/sh4/op_helper.c | 71 ++++++++++++++++----------------------------------
 target/sh4/translate.c | 30 ++++++++-------------
 3 files changed, 37 insertions(+), 75 deletions(-)
Signature · 1 line
2.11.0