public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/11] FP emulation fixes
@ 2016-04-21 13:04 Paul Burton
  2016-04-21 13:04 ` [PATCH 01/11] MIPS: math-emu: Fix BC1{EQ,NE}Z emulation Paul Burton
                   ` (10 more replies)
  0 siblings, 11 replies; 15+ messages in thread
From: Paul Burton @ 2016-04-21 13:04 UTC (permalink / raw)
  To: linux-mips, Ralf Baechle
  Cc: Paul Burton, Adam Buchbinder, Maciej W. Rozycki, Leonid Yegoshin,
	linux-kernel, James Hogan, Markos Chandras

This series fixes up some issues with FPU emulation, ranging from
missing instructions to outright backwards branches to a non-zero zero
register. Some cleanups are made along the way, reducing unnecessary
duplication of code.

There are still issues around the R6 maddf & msubf instructions, which
currently appear to have been formed by duplicating the existing
multiply & addition code then gluing it together & thus don't implement
true fused multiply-addition, but those fixes need more testing so will
come later.

This series applies atop v4.6-rc4.

Paul Burton (11):
  MIPS: math-emu: Fix BC1{EQ,NE}Z emulation
  MIPS: Fix BC1{EQ,NE}Z return offset calculation
  MIPS: inst: Declare fsel_op for sel.fmt instruction
  MIPS: math-emu: Emulate MIPSr6 sel.fmt instruction
  MIPS: math-emu: Unify ieee754sp_m{add,sub}f
  MIPS: math-emu: Unify ieee754dp_m{add,sub}f
  MIPS: math-emu: Add z argument macros
  MIPS: math-emu: Fix bit-width in ieee754dp_{mul,maddf,msubf} comments
  MIPS: math-emu: Fix code indentation
  MIPS: math-emu: Fix m{add,sub}.s shifts
  MIPS: math-emu: Fix jalr emulation when rd == $0

 arch/mips/include/uapi/asm/inst.h |   1 +
 arch/mips/kernel/branch.c         |  18 +--
 arch/mips/math-emu/Makefile       |   4 +-
 arch/mips/math-emu/cp1emu.c       |  45 +++++--
 arch/mips/math-emu/dp_maddf.c     |  35 +++--
 arch/mips/math-emu/dp_msubf.c     | 269 --------------------------------------
 arch/mips/math-emu/dp_mul.c       |   4 +-
 arch/mips/math-emu/ieee754dp.h    |   1 +
 arch/mips/math-emu/ieee754int.h   |  10 ++
 arch/mips/math-emu/ieee754sp.c    |   3 +-
 arch/mips/math-emu/ieee754sp.h    |  17 ++-
 arch/mips/math-emu/sp_add.c       |   6 +-
 arch/mips/math-emu/sp_maddf.c     |  43 ++++--
 arch/mips/math-emu/sp_msubf.c     | 258 ------------------------------------
 arch/mips/math-emu/sp_sub.c       |   6 +-
 15 files changed, 130 insertions(+), 590 deletions(-)
 delete mode 100644 arch/mips/math-emu/dp_msubf.c
 delete mode 100644 arch/mips/math-emu/sp_msubf.c

-- 
2.8.0

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2016-05-10  8:54 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-21 13:04 [PATCH 00/11] FP emulation fixes Paul Burton
2016-04-21 13:04 ` [PATCH 01/11] MIPS: math-emu: Fix BC1{EQ,NE}Z emulation Paul Burton
2016-05-10  8:09   ` Ralf Baechle
2016-05-10  8:43     ` Paul Burton
2016-05-10  8:54       ` Ralf Baechle
2016-04-21 13:04 ` [PATCH 02/11] MIPS: Fix BC1{EQ,NE}Z return offset calculation Paul Burton
2016-04-21 13:04 ` [PATCH 03/11] MIPS: inst: Declare fsel_op for sel.fmt instruction Paul Burton
2016-04-21 13:04 ` [PATCH 04/11] MIPS: math-emu: Emulate MIPSr6 " Paul Burton
2016-04-21 13:04 ` [PATCH 05/11] MIPS: math-emu: Unify ieee754sp_m{add,sub}f Paul Burton
2016-04-21 13:04 ` [PATCH 06/11] MIPS: math-emu: Unify ieee754dp_m{add,sub}f Paul Burton
2016-04-21 13:04 ` [PATCH 07/11] MIPS: math-emu: Add z argument macros Paul Burton
2016-04-21 13:04 ` [PATCH 08/11] MIPS: math-emu: Fix bit-width in ieee754dp_{mul,maddf,msubf} comments Paul Burton
2016-04-21 13:04 ` [PATCH 09/11] MIPS: math-emu: Fix code indentation Paul Burton
2016-04-21 13:04 ` [PATCH 10/11] MIPS: math-emu: Fix m{add,sub}.s shifts Paul Burton
2016-04-21 13:04 ` [PATCH 11/11] MIPS: math-emu: Fix jalr emulation when rd == $0 Paul Burton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox